[Solved] Can I use ‘,’ instead of ‘as’ python 3
The old syntax is no longer valid. Source In Python 2, the syntax for catching exceptions was except ExceptionType:, or except ExceptionType, target: when the exception object is desired. ExceptionType can be a tuple, as in, for example, except (TypeError, ValueError):. This could result in hard-to-spot bugs: the command except TypeError, ValueError: (note lack of … Read more