0

Is indentation compulsory after if statements? What we have to do if the program contains multiple lines?

If program contains multiple lines it will be very difficult for us to indent for each line know. Is there any other process?

20th Oct 2020, 5:42 PM
Sri Laya
Sri Laya - avatar
2 Respuestas
+ 3
No, indentation is not difficult if you are using IDE or special code / text editors otherwise code will not work properly, and most likely will occur an error
20th Oct 2020, 5:49 PM
Shadoff
Shadoff - avatar
+ 3
Python: yes you have to Many other languages: no Many editors allow for code formatting to automate the process of indentation for you tho
20th Oct 2020, 6:08 PM
Maxwell Anderson
Maxwell Anderson - avatar