city1 = input("Enter the name of the first city: ")
city2 = input("Enter the name of the second city: ")
city3 = input("Enter the name of the third city: ")
if len(city1) > len(city2) and len(city1) > len(city3):
print(city1)
elif len(city2) > len(city1) and len(city2) > len(city3):
print(city2)
else:
print(city3)
if len(city1) < len(city2) and len(city1) < len(city3):
elif len(city2) < len(city1) and len(city2) < len(city3):
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
city1 = input("Enter the name of the first city: ")
city2 = input("Enter the name of the second city: ")
city3 = input("Enter the name of the third city: ")
if len(city1) > len(city2) and len(city1) > len(city3):
print(city1)
elif len(city2) > len(city1) and len(city2) > len(city3):
print(city2)
else:
print(city3)
if len(city1) < len(city2) and len(city1) < len(city3):
print(city1)
elif len(city2) < len(city1) and len(city2) < len(city3):
print(city2)
else:
print(city3)