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
8
Answer:
can't understand??
please write it clear
Answered by
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
Math,
20 hours ago
English,
1 day ago
Political Science,
8 months ago
Science,
8 months ago
Economy,
8 months ago