Broken experiment script doodad
This commit is contained in:
19
experiment.py
Normal file
19
experiment.py
Normal 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")
|
||||||
Reference in New Issue
Block a user