Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. def choosePath():
  2. path = ""
  3. while True:
  4. path = input("What will you do?n--> ").lower()
  5. if path in "abcde":
  6. return path
  7. elif path not in "abcde":
  8. print("Invalid command, try againn")
  9.  
  10. choice1 = choosePath()
  11.  
  12. if choice1 == "a":
  13. print("text")
  14. choice2 = choosePath()
  15. if choice2 == "a":
  16. print("new text")
  17. elif choice1 == "b":
  18. print("text")
  19. if choice1 == "c":
  20. print("text")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement