File "Main.py", line 4 if x=1: ^^^SyntaxError: invalid syntax. Maybe you meant '==' or ':=' instead of '='?