SHARE
TWEET

Untitled

a guest Jul 18th, 2019 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top