DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python generator example
def my_generator(): for i in range(10): yield i for i in my_generator(): print(i)
PREVIOUS
NEXT
Tagged:
#python
#generator
ADD COMMENT
Topic
COMMENT
Name
2+9 =
Submit