Question 1 of 5
Which syntax creates a generator expression?
Parentheses with an expression and for clause create a generator expression.
Review this lesson
Check your understanding of generator-expression syntax, evaluation, iteration, and choosing between generators and comprehensions.
Knowledge check
Check your understanding of generator-expression syntax, evaluation, iteration, and choosing between generators and comprehensions.
You can retake this quiz whenever you like.
Question 1 of 5
Question 2 of 5
Question 3 of 5
Question 4 of 5
Question 5 of 5