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)
@btw-aak▲ 3 net votes
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.