Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

According to the 'Key Takeaways' slide, what mechanism does Python use to define what's inside a loop?
Options
A Parentheses
B Curly braces
C Indentation
Correct Answer
D Semicolons
Correct Answer

Option C is the correct answer.

Detailed Explanation

The 'Key Takeaways' slide (page 14) explicitly states: 'Python uses Indentation to define what's inside the loop.' This is a fundamental aspect of Python's syntax.

Hint

Think about Python's unique syntax structure for blocks of code, different from languages like C++ or Java.

Question Info