From 985e041ad0fd81c613bb0975e9b71cf224a7ab9c Mon Sep 17 00:00:00 2001 From: Andrew Date: Thu, 16 May 2019 11:48:53 +0400 Subject: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D1=8C=206,=20=D0=B7=D0=B0=D0=B4?= =?UTF-8?q?=D0=B0=D1=87=D0=B0=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day6/task2/task2.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 day6/task2/task2.py (limited to 'day6') diff --git a/day6/task2/task2.py b/day6/task2/task2.py new file mode 100644 index 0000000..a95feae --- /dev/null +++ b/day6/task2/task2.py @@ -0,0 +1,7 @@ +try: + a = input() + print(100 / int(a)) +except ValueError as e: + print(e) +except ZeroDivisionError as e: + print(e) -- cgit v1.2.3