# SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='? for 'if x=1: pass' (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/syntaxerror-invalid-syntax-maybe-you-meant-or-instead-of-for-if-x-1-pass-python-3-12-10-windows-11-21f7f9c3bbf9
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror

Also '1=x' -> "cannot assign to literal here. Maybe you meant '==' instead of '='?" and 'f()=1' -> "cannot assign to function call here. Maybe you meant '==' instead of '='?"; 'del f()' -> 'cannot delete function call'.
