Python for Engineers
Solve Problems by Coding Solutions - A Complete solution for python programming
Blog Pages
(Move to ...)
Code
Top 10 Blogs
NumPy Tutorials
Distributions
Self Learning
IDE
Packages
About
▼
Exceptional handling for Name Error
# If x is not defined itself the program not terminated
try:
y=50*x
except NameError:
x=1
y=50*x
print y
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment