<Below this line, add a link to the EXACT exercise that you are stuck at.>
not an exercice
<In what way does your code behave incorrectly? Include ALL error messages.>
it’s not incorrect
<What do you expect to happen instead?>
i dont know because i dont know what "  " mean in python and that’s the question
def primes(): yield 2 n = 3 p =  while True: # This works in Python 2.5+ if not any(n % f == 0 for f in itertools.takewhile(lambda f: f*f <= n, p)): yield n p.append(n) n += 2
What allow / do the "  " in this exemple ?
Another question what do the " yield " statemant ?
i read the following definition from wikipédia but don’t undestood well : “The yield statement, which returns a value from a generator function. From Python 2.5, yield is also an operator. This form is used to implement coroutines.”