What is identation error? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is identation error?

5th Jun 2019, 5:13 AM
KS Sreedeep
KS Sreedeep - avatar
2 Answers
+ 3
that only occur in python to my knowledge, and that error only occur when you do not format your code properly, python consider white space as syntax too
5th Jun 2019, 5:39 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
It's about spaces and tabs.It mostly happens in python and languages like it. In python you have to write main codes without spaces in the beginning of line and you use tabs for making function. So this two code bellow will occur indentation error: print('hi') print("what's up?") -------------------------------- def say_hi(): print('hi')
5th Jun 2019, 5:45 AM
ΛM!N
ΛM!N - avatar