According to PEP 8, Python uses 4 spaces per indentation level. Indentation is used to define code blocks such as if, for, and def.
if
for
def