Computer Science, asked by dianajimenez2005, 6 months ago

Assignment 1: Silly Sentences
Let's play Silly Sentences!

Enter a name: Grace
Enter an adjective: stinky
Enter an adjective: blue
Enter an adverb: quietly
Enter a food: soup
Enter another food: bananas
Enter a noun: button
Enter a place: Paris
Enter a verb: jump
Let's play Silly Sentences!

[name] was planning a dream vacation to [place].
[name] was especially looking forward to trying the local
cuisine, including [adjective 1] [food 1] and [food 2].

[name] will have to practice the language [adverb] to
make it easier to [verb] with people.

[name] has a long list of sights to see, including the
[noun] museum and the [adjective 2] park.

Answers

Answered by Equestriadash
40

The following cσdes have been written using Python.

print("Let's play Silly Sentences!")

print()

name = input("Enter a name: ")

adj1 = input("Enter an adjective: ")

adj2 = input("Enter an adjective: ")

adv = input("Enter an adverb: ")

food1 = input("Enter a food: ")

food2 = input("Enter another food: ")

noun = input("Enter a noun: ")

place = input("Enter a place: ")

verb = input("Enter a verb: ")

print()

print(name, "was planning a dream vacation to", place)

print(name, "was especially looking forward to trying the local cuisine "

    "including", adj1, food1, "and", food2)

print(name, "will have to practice the language quietly to make it "

    "easier to", verb, "with people")

print(name, "has a long list of sights to see, including the", noun, "museum "

    "and the", adj2, "park")

Answered by trjmishra
25

print("Let's play Silly Sentences!")

print(" ")

name=input("Enter a name: ")

adj1=input("Enter an adjective: ")

adj2=input("Enter an adjective: ")

adv=input("Enter an adverb: ")

fd1=input("Enter a food: ")

fd2=input("Enter another food: ")

noun=input("Enter a noun: ")

place=input("Enter a place: ")

verb=input("Enter a verb: ")

print(" ")

print(name + " was planning a dream vacation to " + place + ".")

print(name + " was especially looking forward to trying the local \ncuisine, including " + adj1 + " " + fd1 + " and " + fd2 + ".")

print(" ")

print(name + " will have to practice the language " + adv + " to \nmake it easier to " + verb + " with people.")

print(" ")

print(name + " has a long list of sights to see, including the\n" + noun + " museum and the " + adj2 + " park.")

This worked for me I got 100%

Similar questions