summaryrefslogtreecommitdiff
path: root/day6/task2
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2019-05-16 11:48:53 +0400
committerAndrew <saintruler@gmail.com>2019-05-16 11:48:53 +0400
commit985e041ad0fd81c613bb0975e9b71cf224a7ab9c (patch)
tree180b764646f80cf30d674b70df2f792a77c1e858 /day6/task2
parente7974e2383d3c61f2d77512f57d5231142d64205 (diff)
День 6, задача 2
Diffstat (limited to 'day6/task2')
-rw-r--r--day6/task2/task2.py7
1 files changed, 7 insertions, 0 deletions
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)