Advertisement
simeonshopov

Invalid number

Sep 19th, 2019
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. num =  float(input())
  2. in_range = (100<= num <= 200) or num == 0
  3.  
  4. if not in_range:
  5.   print("invalid")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement