From 61b08cd9b5735876381ec922715db185bba207a5 Mon Sep 17 00:00:00 2001 From: user_2i Date: Mon, 15 Dec 2025 13:48:07 +0500 Subject: [PATCH] =?UTF-8?q?151225=20=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB?= =?UTF-8?q?=202=20=D0=B7=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=20=D0=B8?= =?UTF-8?q?=D0=B7=2020=202.2=20=D0=BF=D0=B0=D1=80=D0=B0=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lesson_2-2.2.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lesson_2-2.2.py diff --git a/lesson_2-2.2.py b/lesson_2-2.2.py new file mode 100644 index 0000000..5092315 --- /dev/null +++ b/lesson_2-2.2.py @@ -0,0 +1,10 @@ +'''******* задание 2 из 20 параграф 2.1 ******** +* Нам известны средние скорости двух фаворитов — Пети и Васи. Помогите узнать, кто из них пришёл к финишу первым. +''' + +if __name__ == "__main__" + p_speed, v_speed = int(input()), int(input()) + if p_speed > v_speed: + print('Петя') + else: + print('Вася') \ No newline at end of file