Предмет: Информатика,
автор: ironiaigor
Помогите с задачей, python
Приложения:
flash77779:
Выполнил задание
Ответы
Автор ответа:
0
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)
Приложения:
Похожие вопросы
Предмет: Қазақ тiлi,
автор: rustamkyzyrabiga
Предмет: Алгебра,
автор: elizavetatrubicyna2
Предмет: Алгебра,
автор: Geoglee
Предмет: Химия,
автор: Help6pleas
Предмет: Окружающий мир,
автор: Kostya25245