From 6717d4059b8d79273bf4f07e0420bf564a3e4125 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 9 Dec 2025 14:47:14 +0500 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=202?= =?UTF-8?q?=20=D0=B2=D1=8B=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D0=BB=202.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.2_lesson.2.20.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 2.2_lesson.2.20.py diff --git a/2.2_lesson.2.20.py b/2.2_lesson.2.20.py new file mode 100644 index 0000000..f250b00 --- /dev/null +++ b/2.2_lesson.2.20.py @@ -0,0 +1,11 @@ +****Задание 2 Параграф 2.2*** +***Нам известны средние скорости двух фаворитов — Пети и Васи. Помогите узнать, кто из них пришёл к финишу первым.*** + +if name == "main": + petya = int(input()) + vasya = int(input()) + + if vasya > petya: + print('Вася') + elif petya > vasya: + print('Петя') \ No newline at end of file