[TYPO] Eliminate variants of Python Generator Expressions (#5510)

* [TYPO] Eliminate variants of Python Generator Expressions

* [GRAMMAR] Simplify "creating generators that generate" language

* Avoid using the word 'generating' too much
pull/5577/head
Stephen George 7 months ago committed by GitHub
parent 3e52fef36b
commit ed06724d78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      src/data/roadmaps/python/content/102-python-advanced-topics/107-generator-expressions.md

@ -1,8 +1,8 @@
# Generator Compressions # Generator Expressions
Generator comprehensions are a concise way to create a generator using a single line of code in Python. They are similar to list comprehensions, but instead of creating a list, they create a generator object that produces the values on-demand, as they are needed. Generator expressions are a concise way to create a generator using a single line of code in Python. They are similar to list comprehensions, but instead of creating a list, they create a generator object that produces the values on-demand, as they are needed.
Generator comprehensions are a useful tool for creating generators that generate a large sequence of values, as they allow you to create the generator without creating the entire sequence in memory at once. This can be more efficient and use less memory, especially for large sequences. Generator expressions are a useful tool for efficiently producing large sequence of values, as they allow you to create the generator without creating the entire sequence in memory at once. This tends to use less memory, especially for large sequences.
Visit the following resources to learn more: Visit the following resources to learn more:

Loading…
Cancel
Save