Skip to content

Instantly share code, notes, and snippets.

@mastro35 mastro35/generators_3_3.py Secret
Created Apr 16, 2018

Embed
What would you like to do?
import time
def elements():
elements = []
for i in range (0,4):
# simulate a slow search
time.sleep(5)
elements.append(i)
return elements
print("start")
print(elements())
print("end")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.