Skip to content

Instantly share code, notes, and snippets.

@emperorcezar
Created November 9, 2012 22:52
Show Gist options
  • Save emperorcezar/4048852 to your computer and use it in GitHub Desktop.
Save emperorcezar/4048852 to your computer and use it in GitHub Desktop.
def getnums():
for i in range(0, 101):
print i
yield i
if 4 in getnums():
print('yes')
else:
print('no')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment