Advertisement
Spocoman

04. Number Between 1 and 100

Jan 12th, 2022
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.14 KB | None | 0 0
  1. while True:
  2.     num = float(input())
  3.     if 1 <= num <= 100:
  4.         print(f'The number {num} is between 1 and 100')
  5.         break
  6.  
  7.  
  8.  
  9.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement