Is it only python.... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 9

Is it only python....

is it only python in which the programmer has to take care of the indentation strictly for the code to work. is I indentation also have to be taken care of any other languages strictly So far, I know about python only

28th Apr 2017, 12:52 PM
Siddharth Saraf
3 Answers
+ 18
Another language which enforces indentations is Occam. Not sure if more exists. In other languages, proper indentations are also considered good practices and norms btw. :>
28th Apr 2017, 12:58 PM
Hatsy Rei
Hatsy Rei - avatar
+ 6
COBOL also requires indentation
28th Apr 2017, 2:48 PM
Sikander
Sikander - avatar
+ 4
There are others, but for the majority of popular current languages indentation is only for readability and codeblocks are usually defined by keywords, curly brackets, or other punctuation like semi-colons, parenthesis etc. In those languages the compiler/interpreter will ignore spacing, newlines, tabs etc.
29th Apr 2017, 1:21 PM
Louis