project_python/2.2_lesson.9.20.py
2025-12-09 14:58:49 +05:00

17 lines
743 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

****Задание 9 Параграф 2.2***
*****Кто пойдёт первым? В настольных играх очередность часто определяется жребием, но мы будем использовать порядок букв!
Давайте сравним имена игроков лексикографически и с помощью условных операторов определим, кто начнёт игру.***
if name == "main":
first = input()
second = input()
third = input()
if first < second and first < third:
print(first)
elif second < first and second < third:
print(second)
elif third < first and third < second:
print(third)