I'm trying to make a text based flight simulator in python, but I can't really find out how I can count seconds in python.
I would like to write code that lets me write, while the time counts in the background. I also want a simple code like for example Import Time
then do time.sleep(1)
.
I tried to do this:
for takeoff_time in range(0,16):
time.sleep(1)
Then:
while takeoff_time == (15):
break()
print ("Fly Crashed Before TakeOff ")
time.sleep(2)
os.system("cls")
main()