2 Respuestas
+ 2
4 spaces or one tab. preferably the first or an ide that considers a tab as 4spaces
indent on classes, functions, loops, statements
0
Python doesn’t use braces and semicolons the way other C based languages do. Since it doesn’t, it has to use something to know what code should be blocked off for use.
As stated above, python considers every 4 space indentation as a sub block of code.