Advertisement
Niksko

Updated code for styxxx

Apr 3rd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 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. # New lines I want you to add
  10. print(inp2)
  11. print(result1)
  12.  
  13. if inp2 == result1
  14. print("You are right")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement