+ 1

how to do Indentation in python.

24th Jul 2019, 3:40 PM
Kyle
Kyle - avatar
5 ответов
+ 2
When it comes to Python, creating any code blocks within conditionals, loops, etc. (anything that would normally be written with curly brackets in other languages) requires an indent. All levels of indentation have to be the same, so having an indent for a conditional at one part of your code should be the same sized indent as another conditional at a later point.
24th Jul 2019, 4:35 PM
Faisal
Faisal - avatar
0
Just press tab 🤷‍♂️
24th Jul 2019, 3:54 PM
Faisal
Faisal - avatar
0
I mean what are its rules???
24th Jul 2019, 4:24 PM
Kyle
Kyle - avatar
0
Four spaces or Tab key
24th Jul 2019, 9:04 PM
Az Rael
Az Rael - avatar