Glossary
Indent
Indentation in Python code
In python, the main way of formatting your code will be through indents. Indentation is tabs of white pass that βgroupβ code together with each other.
For example, if you are using a for
loop, every thing under the loop that is indented will be run with the loop. Once you go back to 0 indents, then python will know that youβre done with the loop code.
Python Indents Code Sample
Letβs look at a quick code sample.