unexpected execution of Exceptions in python
问题 I am novice to python and i came up with this problem. i have made a simple program for calculator. In add function, i have used try- except. when this line is encountered (if decide== 'no' or decide== 'n':), it displays the print line "return(" You have exited ")" but it also throws the exception. I cant understand why. import sys def menu(): print "calculator using functions" print "Choose your option:" print " " print "1) Addition" print "2) Subtraction" print "3) Multiplication" print "4)