Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Program 1: Wacky Word Game

#Wacky Word Game program
#Part 1: Request the input words.
first_name = input("Type your name, and select enter: ")
print("")
print("Hello " + first_name + ". Let's play a game.")
print("")
adjective1 = input("Tell me an adjective, and select enter.")
noun1 = input("Tell me a noun (plural), and select enter.")
noun2 = input("Tell me another noun (plural), and select enter.")
adjective2 = input("Tell me another adjective, and select enter.")
#Part 2: Print the poem.
print(first_name + "'s Wacky Word Game")
print("")
print("Roses are red " + adjective1)
print(noun1 + " are blue")
print(noun2 + " are " + adjective2)
print("And so are you!")

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.