Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 009b2cc

Browse files
Create Except.py
1 parent 689b76b commit 009b2cc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

‎Except.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
'''
2+
3+
Exception Handling...
4+
5+
'''
6+
7+
try:
8+
x=int(input())
9+
y=x/0
10+
except ZeroDivisionError:
11+
print("Error: Division by Zero")
12+
except ValueError:
13+
print("Error: Invalid Input")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /