Computer Science, asked by rishitamondal4004, 1 day ago

2. Write a program accept any city from the user and display monument of that city. (python)
City Monument
Delhi Red Fort
Agra Taj Mahal
Jaipur Jal Mahal

Answers

Answered by mohanjiupadhyay74
8

Answer:

can't understand??

please write it clear

Answered by Qwdubai
10

Program to accept any city from the user and display monument of that city.

city = input("Enter a city")

if city.upper() == "DELHI":

   print("Red Fort")

elif city.upper() == "AGRA":

   print("Taj Mahal")

elif city.upper() == "JAIPUR":

   print("Jal Mahal")

else:

   print("Enter a valid city")

In the above program, "city" is a variable that will accept the city name from the user.

#SPJ2

Similar questions