Confusing question in the course "Python3"
I'm afraid following question is confusing: ===== Which errors occur in this code? try: print(1 / 0) except ZeroDivisionError: raise ValueError ===== I think "error" is different concept from "exception". (In many cases, an error produces an exception. But, they are not identical.) In the code, 'error' is "1/0', but ValaueError is intentionally thrown exception. On the other hand, if the question were the "Which exceptions are thrown by this code?, it can also be confusing. Because ZeroDivisionError is thrown, but consumed by try/except. So, it can be ambiguous whether consumed exception should be included to the answer... (The exception finally produced by this code is ValueError, only.) I felt strange feeling from the current question, but I cannot propose the better one. "What are the exceptions thrown during executing this code?" Maybe?