From ec132026cece0124bc704eb47991c9ebb8cf459c Mon Sep 17 00:00:00 2001 From: user <@regina> Date: Wed, 3 Dec 2025 11:53:16 +0500 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5=2017?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 2.1_lesson.17.20.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 2.1_lesson.17.20.py diff --git a/2.1_lesson.17.20.py b/2.1_lesson.17.20.py new file mode 100644 index 0000000..3aaf943 --- /dev/null +++ b/2.1_lesson.17.20.py @@ -0,0 +1,7 @@ +****** Задание 17 Параграф ****** +****** Напишите программу, которая поможет магазину посчитать общую сумму выручки, учитывая, что кассовый аппарат выдаёт сумму последней покупки в двоичной системе счисления. ****** + +if name == "main": + earnings = int(input()) + last = int(input(), 2) + print(earnings + last) \ No newline at end of file