From e0effc7d6bfc7f6c1f88efb83bb2ce8e610af3ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D1=83=D0=B7=D0=B0=D0=BD=D0=BE=D0=B2=20=D0=9F=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=BE?= <124675990+CrazyDuck192@users.noreply.github.com> Date: Tue, 21 Mar 2023 20:19:00 +0200 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=BC=D0=B0=D1=88=D0=BD=D1=8F=20?= =?UTF-8?q?=D1=80=D0=BE=D0=B1=D0=BE=D1=82=D0=B0=20=E2=84=969=20(=E2=84=961?= =?UTF-8?q?5.20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 15.20.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 15.20.py diff --git a/15.20.py b/15.20.py new file mode 100644 index 0000000..a878247 --- /dev/null +++ b/15.20.py @@ -0,0 +1,17 @@ +def check(string): + s = 0 + for el in string: + try: + s += int(el) + except ValueError: + pass + + return s + +string = '8teh5487iu1jkb4823o7g2ov8fui3og87g73o821oyito5g4b8oop787i9uyhj' +print(check(string)) + + + + +