When will python raise a ‘ TypeError ’
Share
When will python raise a ‘ TypeError ’
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Answer:
TypeError is thrown when an operation or function is applied to an object of an inappropriate type. ValueError is thrown when a function's argument is of an inappropriate type. NameError is thrown when an object could not be found. ZeroDivisionError is thrown when the second operator in the division is zero.
Explanation:
TypeError is thrown when an operation or function is applied to an object of an inappropriate type. ValueError is thrown when a function's argument is of an inappropriate type. NameError is thrown when an object could not be found. ZeroDivisionError is thrown when the second operator in the division is zero.
Hope you got the answer
please mark branlist