hiexam
python-institute · PCAP · Q603 · multiple_choice · topic_1

What is the expected output of the following snippet? //IMG//

What is the expected output of the following snippet? //IMG//
  • A.3
  • B.1
  • C.2
  • D.the code is erroneous
Explanation
Since the else is indented incorrectly, the code will be erroneous!

Reference: examtopics_top_comment

Practice with progress tracking

Sign in to track wrong answers, get spaced-repetition reminders, and run timed exam mode.