Advertisement
dkyoseff

Conditional Statements Advanced - Lab / 10. Invalid Number

Jul 26th, 2022
867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. number = int(input())
  2.  
  3. if 100 >= number >= 200:
  4.     print("valid")
  5. elif 99 >= number or number >= 201:
  6.     print("invalid")
  7.  
  8. else:
  9.     print()
  10.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement