Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while 1==1:
- try:
- val = int(input ("Please enter a number to find a word in the file"))
- except ValueError:
- print("That's not an num!")
- else:
- break
- print(val)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement