Python Project: Mad Libs

Press play to try.

#madlibs

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)

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

#quote from The Inimitable Jeeves by PG Wodehouse.