3 ms·
Try except isn't silly it shortens the code a lot. An exception can simply break out of a function, checking for error requires an explicit check at every line
by tesdinger 3y ago
Try except isn't silly it shortens the code a lot. An exception can simply break out of a function, checking for error requires an explicit check at every line of the function and an added return statement to get out of the function.