Quiz Question 1 of 5
In a Python script, you encounter a block of code inside a for-loop that is not being executed as expected. Which of the following is the most plausible reason for this behavior?
Choose the correct answer below:
-
A
The if-else statements within the loop are not using the correct comparison operators.
-
B
The Python interpreter does not recognize loops unless explicitly declared with parentheses.
-
C
The variables within the for-loop are not defined globally.
-
D
The block of code is not properly indented, causing the Python interpreter to misinterpret the structure.