Advertisement
Guest User

conch.py

a guest
Sep 18th, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import random
  2.  
  3. stillPlaying = True
  4. again = True
  5. responses = ["Certainly","Of course","Yes","Maybe","No","Probably not","Sure","Try asking again","Nope","Yup!","I'm not sure"]
  6.  
  7. while stillPlaying == True:
  8. question = input("Ask away!\n")
  9.  
  10. if (question == "what do we do now"):
  11. print("Nothing.")
  12. elif (question == "can i have something to eat"):
  13. print("No")
  14. else:
  15. print(responses[random.randint(0,10)])
  16.  
  17. again = input("Would you like to ask again\n")
  18.  
  19. if again == "no":
  20. stillPlaying = False
  21.  
  22. print("The Magic Conch Shell has spoken!\n")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement