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