QuestionQ169

VerifiedControl Flow – Conditional Blocks and Loops

What output is expected from the following code?

Question Image

Explanation

Testing membership in a dictionary checks its keys. The matching tuple values are 4 and 10, and adding them to the initial value of 1 produces 15.

Community Discussion

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