Skip to content

Instantly share code, notes, and snippets.

@zerafachris
Last active Aug 30, 2021
Embed
What would you like to do?
import time
with open("progress.txt", "w") as f:
for i in range(20):
f.write(f"{i}\n")
f.flush()
print(i)
time.sleep(2)
print("process finished")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment