-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChildren-Multi.py
74 lines (65 loc) · 1.77 KB
/
Children-Multi.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import sys
import os
import random
from time import sleep
hard_mode = False
xp = 0
print("______________________________________")
print(" Epic Quiz Game!")
print(" Rules!")
print("")
print("1.Do not use caps!")
print("2.Have Fun!")
print("______________________________________")
name = input("Please Type Your Name ")
age = input("Please Type your age ")
try:
print(int(age))
except:
print("Please Type a valid age")
sys.exit()
print("Welcome " + name + " you are " + age + " years old")
def loop():
xp = 0
loop = True
while loop:
multi1 = random.randint(2,12)
multi2 = random.randint(2,12)
print ("What is " + str(multi1) + " x " + str(multi2) + "?")
answer = input("Answer: ")
sum_answer = multi1 * multi2
print("The answer was " + str(sum_answer))
print("You answered " + answer)
if answer == str(sum_answer):
print("Correct!")
xp = xp + 50
print("You have " + str(xp) + " XP")
else:
print("Incorrect!")
print("You have " + str(xp) + " XP")
if int(age) > 20:
print("Welcome To The Parent Control Panel!")
print("You Can Control Your Child's Multiplication Quiz")
print("Mode = " + str(hard_mode))
hard_mode_proxy = input("Hello what would you like to set the mode to " + name + " ")
bool(hard_mode_proxy)
hard_mode = hard_mode_proxy
print("hard mode = " + hard_mode)
#-----------------------------------------
loop()
print("Congrats your total xp is " + str(xp) + " Wow!")
print("")
print("")
print("")
print("")
print("")
print("")
print("")
print("Thank you for using our 3rd party repo! #alpha")
print("Exiting...")
sleep(1)
print("Exiting..")
sleep(1)
print("Exiting.")
sleep(0.2)
exit()