Question: Which answer is true for the except part of function? It returns the error message in case of an exception. except Exception as e: return
Which answer is true for the "except" part of function? It returns the error message in case of an exception.
except Exception as e:
return e
except Exception as e:
return fAn error occurred:
except Exception as e:
return Exception An error occurred: :
except error as :
neturn An error occurred:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
