Apuntes_Python/05_diez_proyectos/01-madlibs/sample_madlibs/hungergames.py
2022-12-24 22:41:20 -03:00

32 lines
1.6 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def madlib():
number = input("Number: ")
adj = input("Adjective: ")
verb = input("Verb: ")
verb2 = input("Verb: ")
noun = input("Noun: ")
noun2 = input("Noun: ")
noun3 = input("Noun: ")
noun4 = input("Noun: ")
noun5 = input("Noun: ")
noun_plural = input("Noun (plural): ")
noun_plural_2 = input("Noun (plural): ")
noun_plural_3 = input("Noun (plural): ")
sound_important = input("Name of something that sounds important: ")
madlib = f"""
{number} seconds. Thats how long were required to {verb} on our metal circles before
the sound of a {noun} releases us. Step off before the {number} seconds is up, and {noun_plural} blow your
legs off. {number} seconds to take in the ring of tributes all equidistant from the {sound_important}, a giant
{adj} {noun2} shaped like a {noun3} with a curved tail, the mouth of which is at least twenty feet
high, spilling over with the things that will give us life here in the arena. Food, containers of water,
{noun_plural_2}, medicine, garments, {noun_plural_3}. Strewn around the {sound_important} are other supplies, their value
decreasing the farther they are from the {noun2}. For instance, only a few steps from my feet lies a three-foot
square of {noun4}. Certainly it could be of some use in a downpour. But there in the mouth, I can see a {noun5}
that would protect from almost any sort of weather. If I had the guts to go in and {verb2} for it against
the other twenty-three tributes. Which I have been instructed not to do."""
print(madlib)
if __name__ == '__main__':
madlib()