Exercise: Yield only even numbers
Combine
yield with an if check. Inside the loop, only yield n when it's even.Premium
Python
Setting up Python environment... Output