Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- for count in range(10):
- x = random.randint(1,9)
- y = random.randint(1,9)
- score = 0
- o = ("*","-","+")
- op = random.choice(o)
- ans = input(str(x) + str(op) + str(y))
- if ans == eval(str(x) + str(op) + str(y)):
- print("YAY")
- else:
- print("why you no worky?")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement