QuestionQ94

VerifiedFunctions and Exceptions

What output is expected from the following code?

Question Image

Explanation

Calling a function that defines no parameters with one positional argument raises a TypeError, so execution stops before print(x) runs.

Community Discussion

No comments yet. Be the first to start the discussion!