Advertisement
Guest User

Second Program Lost Fortune

a guest
Apr 3rd, 2012
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. # Lost Fortune
  2. # A personalised adventure Game
  3.  
  4. print \
  5. """
  6. Welcome to Lost Fortune.
  7. Please enter the following details for your adventure:
  8. """
  9.  
  10. explorers = int(raw_input("Enter the number of explorers: "))
  11. dead = int(raw_input("Enter the number of explorers lost in battle: "))
  12. leader = raw_input("Enter the name of the quest leader: ")
  13. alive = explorers - dead
  14. gold = 750 % alive
  15.  
  16. print "\nThe brave", leader, "led ", explorers, "explorers on a quest for gold."
  17. print "The group fought a band of ogres and lost", dead, "members!"
  18. print "Only", alive, "survived the battle."
  19.  
  20. print "\nThe party was about to give up when the stumbled upon the"
  21. print "buried fortune of 750 gold pieces. They split the loot and",
  22. print leader, "\nkept the extra", gold, "pieces of gold."
  23.  
  24. raw_input ("\n\nPress the enter key to exit.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement