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 aa7bd95

Browse files
Create ExceptionHandling.py
1 parent 3847572 commit aa7bd95

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎ExceptionHandling.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
'''
2+
3+
Exception Handling in python
4+
5+
'''
6+
7+
def Divison(a,b):
8+
try:
9+
r=a/b
10+
print(r)
11+
except:
12+
print("Zero Division Error")
13+
14+
a=int(input())
15+
b=int(input())
16+
Divison(a,b)

0 commit comments

Comments
(0)

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