1. Home
  2. MCQs by exam
  3. Python Interview Control Flow
  4. Data Science

Python Interview Control Flow MCQs – Data Science

15 multiple choice questions typical of the Python Interview Control Flow exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 1–15 of 15

What is the output of the following Python code snippet?

for i, c in enumerate('ab'):
print(c, i)
  1. 0 a 1 b
  2. a b
  3. a 0 b 1 Correct answer
  4. Error
MCQSEXAM Read explanation