Quiz Question 1 of 6
A Python program throws an IndentationError: unexpected indent
. What is the most likely cause of this error, and how should you approach solving it?
Choose the correct answer below:
-
A
The code is missing a closing parenthesis; add the parenthesis to fix the error.
-
B
The use of different types of indentation (spaces and tabs) in the code; resolve it by standardizing the indentation type throughout the code.
-
C
The error indicates a hardware issue; restart the computer to solve the problem.
-
D
The code contains a variable that hasn't been defined; define the variable to solve the error.