-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmath_checker.py
32 lines (31 loc) · 1.01 KB
/
math_checker.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
def func1():
print ("please put the starting number in the in the input box above")
input_a = input()
input_a = int(input_a)
print ("please put the number that you divided by")
input_b = input()
input_b = int(input_b)
print ("Please put the answer you got")
input_c = input()
input_c = int(input_c)
print ("press enter to check answer")
input_d = input()
if input_c == input_a/input_b:
print ("Yay! You got it right")
print ("thank you for using this program")
else:
print ("try again :(")
print ("tpye 'yes' to view the correct answer")
input_k = input()
if input_k == "yes":
input_f = input_a/input_b
input_g = input_c-input_f
print (input_g)
print (input_f)
else:
print ("thank you for using this program")
input_j = "yes"
while input_j == "yes":
func1()
print ("would you like to do this again?")
input_j = input()