Computer Science, asked by CHSURYASASIDHAR1879, 1 year ago

What is unexpected indent in Python?

Answers

Answered by IASofficer
0

Python not only insists on indentation, it insists on consistent indentation. If we indent one line by 4 spaces, but then if we indent the next by 3 (or 5, 6, .),

we get this error of unexpected indent in python. All lines of code in a block must start with exactly the same number of spaces

Answered by omegads04
0

Python not only insists on indentation, it insists on consistent indentation. If we indent one line by 4 spaces, but then if we indent the next by 3 or 5, 6. This is unexpected indent in python .

Similar questions