Thonny Python

I tried to make a calculator in Thonny and it said there was a SyntaxError in the initial if statement: “if b=’^’:”.

1 Like

You’ll want to review the syntax for python comparison operators.

A single equals sign is assignment. To compare, you must use two equal signs. E.g.:

if b=='^':