Advertisement
ydpetkov

invalid_number

Jul 24th, 2022
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. number = int(input())
  2.  
  3. in_range = ( number >= 100 and number <= 200 ) or number == 0
  4. if not in_range:
  5. print("invalid")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement