Advertisement
Lolbanana

Mad libs story

Jan 18th, 2020
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.24 KB | None | 0 0
  1. # Init Variables
  2.  
  3. # Init Variables
  4. theMatrix = ""
  5. system = ""
  6. neo = ""
  7. enemy = ""
  8. inside = ""
  9. save = ""
  10. unplugged = ""
  11. fight = ""
  12.  
  13. profession = ["","","",""]
  14. adj = ["",""]
  15.  
  16. # Get Input From User
  17. print("Welcome user!")
  18. print("Let's play a game of madlibs, a game where you personise a text!")
  19. neo = input("please share with me your name: ")
  20.  
  21. # Getting the Matrix variable from user
  22. print(f"Hello {neo}! Are you ready?")
  23. theMatrix = input("What is something you want to know more about: ")
  24.  
  25. # Getting system variable from user
  26. print(f"Oooh! You want to know more about {theMatrix} huh?")
  27. print(f"Okay well first, tell me what you already know about {theMatrix}")
  28. system = input(f"what noun would you categorize {theMatrix} as: ")
  29.  
  30. # Getting enemy variable from user
  31. enemy = input(f"Give me an opposing noun to {system}: ")
  32.  
  33. # Getting inside varaible from user
  34. inside = input(f"Now give me any relaxing noun (present tense): ")
  35.  
  36. # Getting all profession varible from user
  37. print(f"Okay, now I need 4 professions relating to {system}")
  38.  
  39. for i in range(len(profession)):
  40.     profession[i] = input(f"Profession (plural) {i+1} / {len(profession)}: ")
  41.  
  42. # Getting the save variable
  43. save = input(f"Give me a hero-related verb (present tense): ")
  44.  
  45. # Getting the unplugged variable
  46. unplugged = input(f"Now give me a verb that makes you think about relief (past tense): ")
  47.  
  48. # Getting the adjectives
  49. print(f"Lastly I need 2 dystopian adjectives")
  50.  
  51. for i in range(len(adj)):
  52.     adj[i] = input(f"Adjective {i+1} / {len(adj)}: ")
  53.    
  54. # Getting the fight variable
  55. fight = input(f"& a verb: ")
  56.  
  57. # Init Story
  58. madlibsStory = (f"{theMatrix} is a {system}, {neo}.That {system} is our {enemy}. " +
  59. f"But when you're {inside}, you look around, what do you see? " +
  60. f"{profession[0]}, {profession[1]}, {profession[2]}, {profession[3]}. The very minds " +
  61. f"of the people we are trying to {save}. But until we do, " +
  62. f"these people are still a part of that {system} and that makes " +
  63. f"them our {enemy}. You have to understand, most of these people " +
  64. f"are not ready to be {unplugged}. And many of them are so {adj[0]}, " +
  65. f"so hopelessly {adj[1]} on the {system}, that they will {fight} to protect it.")
  66.  
  67. # Print Story
  68. print(madlibsStory)
  69. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement