Search
 
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
Name
2+9 =