Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- one = 1
- randint = randint(1,10)
- result1 = one * randint
- inp1 = input("What number would you like to practice? ")
- if inp1 == "one" or "1":
- inp2 = input("What is " + str(one) + "*" + str(randint) + "=")
- # Note that I've updated these lines, to wrap the values in the 'type' function
- print(type(inp2))
- print(type(result1))
- if inp2 == result1
- print("You are right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement