Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # --- version 1 ---
- y = [1, 2, 3, 4]
- while True:
- s = input()
- s = int(s)
- # s = int(input())
- if s in y:
- print('good guess')
- break
- else:
- print('try again')
- # --- version 2 ---
- y = ["1", "2", "3", "4"]
- while True:
- s = input()
- if s in y:
- print('good guess')
- break
- else:
- print('try again')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement