DiYane

Number Between 1 and 100

Jul 2nd, 2023 (edited)
886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | Help | 0 0
  1. num = float(input())
  2.  
  3. while num < 1 or num > 100:
  4.     num = float(input())
  5.  
  6. print(f"The number {num} is between 1 and 100")
Advertisement
Add Comment
Please, Sign In to add comment