5 ответов
+ 7
Lz1234 ,
the python style guide (pep 8) mentiones to use 4 spaces per indentstion level.
the tab key can also be used if the editor can convert tab to spaces. playground on android devices support this.
mixing (real) tabs and spaces is not allowed.
for more information read:
https://peps.python.org/pep-0008/#indentation
+ 5
Lz1234 ,
please use the link that is provided in my post. scroll down a bit and you will find the information.
...
Code Lay-out
Indentation
Use 4 spaces per indentation level.
...
+ 1
Lothar
So im understanding that spaces are the pefered way
I thought is was 3 spaces are you sure about the 4