Skip to content

def simple_generator(): yield 1 yield 2 yield 3 gen = simple_generator() print(next(gen)) # Output: 1 print(next(gen)) # Output: 2 print(next(gen)) # Output: 3 #986

Unanswered
Kuttu742 asked this question in Introduction to GitHub
Discussion options

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant