Advertisement
silvertank

Untitled

Dec 4th, 2022
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.12 KB | None | 0 0
  1. while not ((data := input("data: ")).isnumeric() and (0 < int(data) < 5)):
  2.     print("wrong! try again")
  3.  
  4. print("ok")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement