163k views
1 vote
Ask the user to input a country name. Display the output the message “I

would love to go to [country]”

1 Answer

5 votes

Answer:

Step-by-step explanation:

The following code is written in Python, it asks the user for an input saves it to a variable called country, and then prints out the sentence example in the question using the user's input. The output can be seen in the picture attached below

country = input("input country")

print('I would love to go to ' + country)

Ask the user to input a country name. Display the output the message “I would love-example-1
User Whitneyit
by
5.7k points