Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

try except python not working

b = 0
try:
    print(a/b) # a/0
except ZeroDivisionError:
    print("It's Infinite") 
Comment

PREVIOUS NEXT
Code Example
Python :: numpy random in python 
Python :: django add middleware 
Python :: python invert binary tree 
Python :: dataset for cancer analysis in python 
Python :: To visualize the correlation between any two columns | scatter plot graph 
Python :: how to set variable in flask 
Python :: python find index of first matching element in a list 
Python :: jinja conditional syntax 
Python :: np.random.RandomState 
Python :: how to add item to a list python 
Python :: how to make lists in python 
Python :: python count values in list 
Python :: run matlab code in python 
Python :: iterative dfs python 
Python :: django in conda 
Python :: max in a list python 
Python :: UTC to ISO 8601 with TimeZone information (Python 3): 
Python :: python dict setdefault 
Python :: underscore in python 
Python :: python replace line in file 
Python :: how do i get parent directory python 
Python :: python arguments 
Python :: discord.py edit messages 
Python :: python run in another thread decorator 
Python :: how print 2 decimal in python 
Python :: vim run python current file 
Python :: python password checker 
Python :: how to unlist a list in python 
Python :: python int to string 
Python :: python array methods 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =