Advertisement
Sabev

Number in Range

Nov 26th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. num_1 = int(input())
  2.  
  3. while num_1 < 1 or num_1 > 100:
  4.     print("Invalid number!")
  5.     num_1 = int(input())
  6.  
  7. print(f"The number is: {num_1}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement