FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
materials/bpython/adder-v1.py at master · realpython/materials · GitHub
realpython
materials
Repository navigation
Code
Issues
39
(39)
Pull requests
61
(61)
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
materials
/
bpython
/
adder-v1.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (9 loc) · 233 Bytes
Breadcrumbs
materials
/
bpython
/
adder-v1.py
Copy path
File metadata and controls
10 lines (9 loc) · 233 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
try
:
x
=
int
(
input
(
"x = "
))
y
=
int
(
input
(
"y = "
))
z
=
x
/
y
except
(
ValueError
,
ZeroDivisionError
)
as
ex
:
# noqa: F841
import
bpython
bpython
.
embed
(
locals
(),
banner
=
"Post-Mortem Debugging:"
)
else
:
print
(
z
)
Back
|
FazBrowse Home
|
New Git URL