0
Except-syntax error
I m getting syntax error. while using a except function in python 2.74 I'm using linux. what I do except zerodivisionerror: print ('wrong') what I missed
7 Answers
+ 1
Hello, Python is Case sensitive as far as I know.
try this:
try:
print('your code')
except ZeroDivisionError:
print('Handling')
best regards
robert
+ 1
what' s the full error message?
0
I tried that too bro.
but got same
any compile error
0
except:
^
syntax error :invalid syntax
0
I'll get this error only if I miss "try:" before except:
0
oh I will try again brother
0
new error.
indentation error :unindent does not match any outer indentation level