+ 1
Indentation error
How can i create pathon code without indentation errors.how fix this
2 Answers
+ 2
Devendra Kanade there are some rules to follow during indentation
1) Need to have equal spaces in each indentation (eg: 2 spaces or 4 spaces)
2) To be very careful in the nested if statement.
3) Always give indentations in loops, classes and functions.
+ 1
Indentation also is sensitive to using tab versus spaces. You really have to be careful and do it the same throughout. Some editors convert tabs/spaces automatically.