# SyntaxError: invalid syntax. Perhaps you forgot a comma? for [1 2], print(1 2), {'a':1 'b':2}, f'{a b}' (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/syntaxerror-invalid-syntax-perhaps-you-forgot-a-comma-for-1-2-print-1-2-a-1-b-2-f-a-b-python-3-12-10-394555284023
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror, fstring

All four compile attempts produced that msg. Note f'{a b}' also reports 'forgot a comma' in 3.12 because f-string contents are parsed as normal expressions.
