Question #111

A single except clause can catch multiple exceptions of different types.

A single except clause can catch multiple exceptions of different types when they are given as a tuple. For instance:

except (IDontLikeYouException, YouAreBeingMeanException) as e:
    pass

. (stackoverflow.com/questions/6470428/catch-multiple-except...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: 🔵🔵🔵🔵🔵