+ 1

What does indent / indentation mean ?

22nd Apr 2019, 2:24 PM
Moin Mohammed
Moin Mohammed - avatar
2 Respuestas
+ 17
To indicate a block of code in Python, you must indent each line of the block by the same amount. The two blocks of code in our example if-statement are both indented four spaces, which is a typical amount of indentation for Python. http://www.peachpit.com/articles/article.aspx?p=1312792&seqNum=3
22nd Apr 2019, 2:59 PM
JTLZ
0
Indention makes the code blocks more 'readable'. Embedding comments also helps
24th Apr 2019, 6:22 AM
Da2
Da2 - avatar