Broken experiment script doodad

This commit is contained in:
2021-02-08 11:58:05 +00:00
parent 146a066cec
commit 706066cb57

19
experiment.py Normal file
View File

@@ -0,0 +1,19 @@
import datetime
import random
start = datetime.datetime.now()
end = start + datetime.timedelta(minutes=10)
while datetime.datetime.now() < end:
# print("Time remaining: {}".format(target - datetime.datetime.now()))
one = 10
two = 1
print("What is {} x {}?".format(one, two))
if input() == str(one * two):
one = random.randint(0, 100)
two = random.randint(0, 100)
print("Correct!")
else:
print("Wrong...")
else:
print("Done")