+ 1

Is tab is necessary in python 3 ???

when i am using if function and after print(without using tab space) statement when i execute it. I found error in program!! why???

12th Sep 2019, 8:56 AM
Mohit Kumar
Mohit Kumar - avatar
3 Réponses
+ 5
Some editors handle indentation better than others. I felt that Pydroid3 is really annoying that way. Sticking to either tabs or spaces is a good idea. If you're still insecure how indentation is exactly done, you can read (not run) this: https://code.sololearn.com/cT5BRIbkia21/?ref=app
12th Sep 2019, 10:45 AM
HonFu
HonFu - avatar
+ 3
Yes... Tab for indentation.
12th Sep 2019, 9:40 AM
Kuri
Kuri - avatar
+ 2
Not necessary to use tabs, because you can also use spaces, but don't use both.
12th Sep 2019, 10:19 AM
Seb TheS
Seb TheS - avatar