cs/stuff/mad-libs/main.py

26 lines
1.2 KiB
Python
Raw Permalink Normal View History

2022-09-27 10:41:52 -04:00
#!/usr/bin/env python3
# mad libs for CS
# Public domain - no warranty
2022-09-29 11:00:36 -04:00
name = input("==> Enter a name: ")
place = input("==> Enter a place: ")
transport = input("==> Enter a mode of transportation: ")
place2 = input("==> Enter another place: ")
food = input("==> Enter the name of a food: ")
noun = input("==> Enter a noun: ")
vb = input("==> Enter a verb in the past tense: ")
vb2 = input("==> Enter another verb in the past tense: ")
vb3 = input("==> Enter a regular verb: ")
adv = input("==> Enter an adverb: ")
#spc = print(" ")
print(name + " was excited to go to " + place + ". They will need to get there by " + transport + ".")
print(name + " " + vb + " to the " + place2 + ". " + name + " purchased some " + food + " for the trip.")
print("When " + name + " arrived, their " + noun + " was " + vb2 + ". They " + adv + " " + vb3 + " to the " + " " + place2)
print("Unfortunately, their " + noun + " was lost.")
2022-09-27 10:41:52 -04:00
#{name} was excited to go to {place}. They will need to get there by {mode of transport}.
2022-09-29 11:00:36 -04:00
#{name} {past tense verb} to the {location}. {name} purchased some {food} for the trip.
#When {name} arrived, their {noun} was {past tense verb (2)}. They {adverb} {verb} to the {place(2)}.
#Unfortunately, their {noun} was lost.