get an exception's argument : Try : Statement PYTHON TUTORIALS


PYTHON TUTORIALS » Statement » Try »

 

get an exception's argument


try:
    num = float(raw_input("nEnter a number: "))
except(ValueError), e:
    print "Not a number!  Or as Python would say:n", e



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Statement
» Try