daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 49 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. import random
  2. numb1 = random.randint(1,10)
  3. numb2 = random.randint(1,10)
  4.  
  5. print('What is: ', numb1, ' + ', numb2, '?')
  6. answer = input('Answer: ')
  7.  
  8. while (numb1 + numb2 != answer):
  9.     print('Incorrect, try again!')
  10.     answer = input('Answer: ')
  11. print('Correct!')
  12.    
  13. >>> 1 == "1"
  14. False
  15.    
  16. while numb1 + numb2 != int(answer):
  17.    
  18. answer = int(input('Answer: '))
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top