QuestionQ126

VerifiedFunctions and Exceptions

What is the expected output from the following code?

Question Image

Explanation

The dictionary assignment succeeds, but the function does not explicitly return a value. In Python, a function with no return statement returns None, which print outputs.

Community Discussion

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