Advertisement
JulieAlice

Python to Scratch RPF - Debugging

Feb 18th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. my_num = ()
  2.  
  3. while my_num != 6:
  4.  
  5.     my_num = input("Guess what number I'm thinking of: ")
  6.     my_num = int(my_num)
  7.  
  8.     if my_num > 6:
  9.         print('Too high')
  10.     elif my_num < 6:
  11.         print('Too low')
  12.     else:
  13.         print('You guessed it')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement