Description
This issue describes how to implement the itertools
module concept docs.
You can find the related concept exercise issue here
If you have not yet contributed to concept documents, this issue will require some upfront reading to give you the needed background knowledge.
✅ Getting started
Please please read the docs before starting.
Posting PRs without reading these docs will be a lot more frustrating for you during the review cycle, and exhaust Exercism's maintainers' time.
General Contributing Docs:
- Contributing to Exercism | Exercism and GitHub | - Contributor Pull Request Guide
- What are those Weird Task Tags about?
- Exercism Formatting and Style Guide
- Exercism Markdown Specification
- Reputation
Documents on Language Tracks and Concepts:
🎯 Goal
These concept docs are meant to teach an understanding/use of the itertools
module in Python.
💡 Learning objectives
Learn more about iteration
tools the Python Standard Library provides through the itertools
module.
Build and understanding of and use the following functions from the module, as well as practicing some of the recipes included :
- At least one of the infinite itertators
count()
,cycle()
,, orrepeat()
accumulate()
product()
chain()
&chain.from_iterable()
groupby()
islice()
zip_longest()
and thezip() built-in
permutations()
combinations()
🚫 Out of scope
Concepts & Subjects that are Out of Scope (click to expand)
classes
&class customization
beyond the use of theitertools
methods.class-inheritance
beyond what is needed to customizeiteration
usingitertools
comprehensions
beyond what is needed to work withitertools
comprehensions
inlambdas
coroutines
decorators
beyond what is needed to work withitertools
functions
andhigher-order functions
beyond what might be needed to work withitertools
functools
and relatedmap()
,filter()
andfunctools.reduce()
(they have their own exercise which is a prerequisite to this one)generators
beyond what might be needed to work withitertools
(they have their own exercise which is a prerequisite to this one)lambdas
beyond what might be needed to work withitertools
- using an
assignment expression
or "walrus" operator (:=
) - class decorators
enums
🤔 Concepts
iteration
iterators
itertools
↩️ Prerequisites
These are the concepts/concept exercises the student should be familiar with before taking on/learning this concept.
Exercise Prerequisites (click to expand)
basics
booleans
comparisons
rich-comparisons
dicts
dict-methods
functions
functional tools
generators
higher-order functions
- Identity methods
is
andis not
iteration
lists
list-methods
loops
numbers
sequences
sets
strings
string-methods
tuples
📚 Resources to refer to
Resources (click to expand)
📁 Files to Be Created
File Detail for this Exercise
Please see the following for more details on these files: concepts
|
🎶 Implementation Notes
- Example code should only use syntax & concepts introduced within these docs or one of the prerequisite concept exercises or documents. Where possible, please use REPL formatting, unless you are demonstrating pseudo code or a long code block.
Please do not use syntax not previously covered in prerequisite topics or exercises. Please also follow PEP8 guidelines. - Our markdown and JSON files are checked against prettier . We recommend setting prettier up locally and running it prior to submitting your PR to avoid any CI errors.
🆘 Next Steps & Getting Help
If you'd like to work on this issue, comment saying "I'd like to work on this"
(there is no real need to wait for a response, just go ahead, we'll assign you and put a[claimed]
label on the issue).- If you have any questions while implementing, please post the questions as comments in here, or contact one of the maintainers on our Slack channel.