Advertisement
Niksko

Updated again

Apr 3rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. one = 1
  2. randint = randint(1,10)
  3. result1 = one * randint
  4.  
  5. inp1 = input("What number would you like to practice? ")
  6. if inp1 == "one" or "1":
  7.     inp2 = input("What is " + str(one) + "*" + str(randint) + "=")
  8.    
  9.     # Note that I've updated these lines, to wrap the values in the 'type' function
  10.     print(type(inp2))
  11.     print(type(result1))
  12.  
  13.     if inp2 == result1
  14.         print("You are right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement