Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. background="******************\n******************\n☺\n******************\n******************"
  2.  
  3. i = 1 #to keep track where the user is in the "woods"
  4. n='right'
  5.  
  6. while n=='right' or i>0:
  7. print(background)
  8. n=input("you are in the lost woods, What do you do?\nGo left or right?(type in)\n")
  9.  
  10. if n=='right':
  11. i+=1
  12. elif n=='left':
  13. i-=1
  14. else:
  15. print('invalid input')
  16.  
  17. print('\n-------------------\n☺ - - - - - -\n-------------------\n')
  18. print("you are out of the woods. Congratulations!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement