From 84e842ad3b011fdbba0152ff2b54435e16f72d50 Mon Sep 17 00:00:00 2001 From: shariik Date: Mon, 15 Dec 2025 13:21:01 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=203=20?= =?UTF-8?q?=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80=D0=B0=D1=84=202.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.2_lesson.3.20.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 2.2_lesson.3.20.py diff --git a/2.2_lesson.3.20.py b/2.2_lesson.3.20.py new file mode 100644 index 0000000..908f8ca --- /dev/null +++ b/2.2_lesson.3.20.py @@ -0,0 +1,16 @@ +****Задание 3 Параграф 2.2*** +***Нам известны средние скорости трёх фаворитов — Пети, Васи и Толи. Кто из них финишировал первым?*** + +if name == "main": + petya = int(input()) + vasya = int(input()) + tolya = int(input()) + + if vasya > petya and vasya > tolya: + print('Вася') + elif petya > vasya and petya > tolya: + print('Петя') + elif tolya > vasya and tolya > petya: + print('Толя') + else: + print('непонятно')