[Solved] Getting error message “expected an indented block” [duplicate]


In Python, indentation is crucial. After each :, you must indent at least at the next line so the interpreter understands the line belongs to the block.

if month * day == year:
    print ('The date is magic!')
else:
    print ('The date is not magic.')

I suggest you to gather more information on how indents work in Python

1

solved Getting error message “expected an indented block” [duplicate]