Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def choosePath():
- path = ""
- while True:
- path = input("What will you do?n--> ").lower()
- if path in "abcde":
- return path
- elif path not in "abcde":
- print("Invalid command, try againn")
- choice1 = choosePath()
- if choice1 == "a":
- print("text")
- choice2 = choosePath()
- if choice2 == "a":
- print("new text")
- elif choice1 == "b":
- print("text")
- if choice1 == "c":
- print("text")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement