Python Project: Mad Libs

Press play to try.


while True:

  adjective = input("Enter an adjective: ")
  noun = input("Enter a noun: ")
  adverb = input("Enter an adverb: ")
  verb = input("Enter a verb: ")

  sentence = """He put the good {adjective} cup of {noun} {adverb} on the table by my bed, and I took a refreshing {verb}.""".format(adjective=adjective, noun=noun, adverb=adverb, verb=verb)

  again = input("Play again? y/n: ")
  if again.lower() != "y":

#quote from The Inimitable Jeeves by PG Wodehouse.