QuestionQ17

Exception Handling

Review this Python 3 code.

Question Image

Which input causes the program output to include Thank You?

  • A 539
  • B 4a6e
  • C (52-4)
  • D three
Explanation

539 is valid input for Python’s int() conversion. The conversion succeeds, break exits the loop, and execution reaches the final print statement.

Community Discussion

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