Specifying exception type : Exception Type : Exception PYTHON examples


PYTHON examples » Exception » Exception Type »

 

Specifying exception type





try:
    num = float(raw_input("nEnter a number: "))
except(ValueError):
    print "That was not a number!"
           
       



    Related Scripts with Example Source Code in same category :

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON examples

 Navioo Exception
» Exception Type