FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
My-Python-Code/Try-Exception-Example.py at main · aminzayer/My-Python-Code · GitHub
aminzayer
/
My-Python-Code
Public
Notifications
You must be signed in to change notification settings
Fork
1
Star
3
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
My-Python-Code
/
Try-Exception-Example.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (14 loc) · 339 Bytes
Breadcrumbs
My-Python-Code
/
Try-Exception-Example.py
Copy path
File metadata and controls
14 lines (14 loc) · 339 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Try & Exception Example Code
try
:
#print("10" + 10)
print
(
2
+
10
)
except
IOError
:
print
(
"You Have an input/output error!"
)
except
TypeError
:
print
(
"You are using the worng data types!"
)
except
:
print
(
"you got an error"
)
else
:
print
(
"Run Successfull without error"
)
finally
:
print
(
"Your Code run out and final."
)
Back
|
FazBrowse Home
|
New Git URL