Closed BethanyG closed 2 years ago
This issue has been automatically marked as abandoned
because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as abandoned 🏚
because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Flagging as close and reopen under new issue template.
This issue describes how to implement the
generator-expressions
concept exercise for the Python track.Getting started
Please 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. So, before diving into the implementation, please read up on the following documents:
Goal
The goal of this exercise is to teach the syntax and variants of
generator expressions
in Python.Learning objectives
generator expression
relates to both alist comprehension
and agenerator
generator expressions
can and cannot be utilizedgenerator expression
''.join()
orsum()
Out of scope
throw()
andclose()
assignment expression
(walrus operator) with agenerator expression
Concepts
generator expressions
Prerequisites
basics
conditionals
comparisons
loops
generators
iterators
iteration
list-comprehensions
other-comprehensions
Resources to refer to
Hints
Generator Expressions
section of the Python docs tutorial: Generator expressions and list comprehensions (Python official docs)After
Generator-iterator methods
, such asgenerator.send()
andgenerator.throw()
generator expressions
generators
used as coroutinesRepresenter
No changes required.
Analyzer
No changes rquired.
Implementing
Help
If you have any questions while implementing the exercise, please post the questions as comments in this issue.