+ 1

Indentation error

How can i create pathon code without indentation errors.how fix this

15th Nov 2024, 4:20 PM
Devendra Kanade
Devendra Kanade - avatar
2 Antworten
+ 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.
15th Nov 2024, 5:09 PM
Aysha
Aysha - avatar
+ 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.
15th Nov 2024, 7:29 PM
Jerry Hobby
Jerry Hobby - avatar