Advertisement
veronikaaa86

10. Invalid Number

Jan 22nd, 2022
390
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. num = int(input())
  2.  
  3. valid = (num >= 100 and num <= 200) or num == 0
  4.  
  5. if not valid:
  6. print("invalid")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement