python icon indicating copy to clipboard operation
python copied to clipboard

[New Concept Exercise] : generator-expressions

Open BethanyG opened this issue 5 years ago • 2 comments

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

  • Understand how a generator expression relates to both a list comprehension and a generator
  • Understand where generator expressions can and cannot be utilized
  • Create a generator expression
  • Use a generator expression as an argument to a function such as ''.join() or sum()
  • Use a generator expression as an element of a comprehension

Out of scope

  • Memory and performance characteristics and optimizations
  • Generator methods such as throw() and close()
  • Using the assignment expression (walrus operator) with a generator expression

Concepts

  • generator expressions

Prerequisites

  • basics
  • conditionals
  • comparisons
  • loops
  • generators
  • iterators
  • iteration
  • list-comprehensions
  • other-comprehensions

Resources to refer to

Hints

After

  • Additional Generator-iterator methods, such as generator.send() and generator.throw()
  • generator expressions
  • Asynchronous generator functions
  • generators used as coroutines

Representer

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.

BethanyG avatar Apr 30 '20 15:04 BethanyG

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.

github-actions[bot] avatar Feb 20 '21 01:02 github-actions[bot]

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.

github-actions[bot] avatar Sep 10 '22 02:09 github-actions[bot]

Flagging as close and reopen under new issue template.

BethanyG avatar Sep 13 '22 15:09 BethanyG