Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- list = ['my', 'list', 'of', 'stuff']
- options = range(0, len(list))
- fileChoice = -1
- while fileChoice not in options:
- try:
- fileChoice = int(input("Choose the number of the file to restore > "))
- except ValueError:
- print("not an option")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement