Bei der Entwicklung eines Skriptes kommt es häufig vor, dass man einen Teil einer Kontrollstruktur erst später schreiben, aber die Struktur bereits „skizzieren“ will.
x = 5
if x == 1:
else:
print(x)
File "pass.py", line 6
else:
^
IndentationError: expected an indented block
Lösung:
x = 1
if x == 1:
pass
else:
print(x)