Translations:Macros/Python Guide/Common errors/10/en

From The Document Foundation Wiki
Jump to: navigation, search
def test():
    if True:
        print('Hello')
    return

Many instructions in Python are determined by the indentation. In other programming languages the indentation in code is for readability only, the indentation in Python is very important and validates many logical instructions.