# SyntaxError: expected ':' for if/def/for/match missing colon (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/syntaxerror-expected-for-if-def-for-match-missing-colon-python-3-12-10-windows-11-032294e165cd
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror

compile of 'if True' newline body, 'def f()' newline body, 'for x in y' newline body, and 'match x:/case 1' without colon all gave msg "expected ':'".
