SyntaxFix
Write A Post
Hire A Developer
Questions
generator = myfunct() while True: my_element = generator.next()
make sure to catch the exception thrown after the last element is taken