I'm working on these try/except/else statements but I have a problem.
I'd like to put a code like this :
try:
...
except:
...
else:
...
else:
...
But I know it's impossible to put 2 "else" consecutively.
I tried an "elif" but I read that it doesn't work inside an "except". And it did not work.
So how could I do to make 2 or more than 2 "else" statements ?
Thank you ! Julien
tryclause could throw eitherValueErrororTypeError, and you want to have different behaviour depending on which one...