Question Detail

BIO 107 While Loops & Control Flow Objective Question

Question

According to the 'Key Takeaways' on page 14, what does Python use to define what's inside a loop (or other blocks of code)?
Options
A Parentheses <code>()</code>
B Curly braces <code>{}</code>
C Semicolons <code>;</code>
D Indentation
Correct Answer
Correct Answer

Option D is the correct answer.

Detailed Explanation

Page 14 explicitly states, 'Python uses Indentation to define what's inside the loop.' This is a fundamental aspect of Python's syntax.

Hint

This is a key characteristic of Python's code structure.

Question Info