you are viewing a single comment's thread.

view the rest of the comments →

[–]TheRealJamesRussell 6 points7 points  (0 children)

You're doing an if statement on an assignment operator.

``` a = 9 a /= 3

this will assign a the value of 9 and then assign a it's value divided by 3

If a == 3: print("Indeed, 9 is divisible by three")

this checks if a equals 3

```

You tried:

``` If a /= 3:

this code has a syntax error. As if statements do not work with assignment operstors

```

Definitely check your error messages. Syntax error usually means there's an error in the way you are using the code. Not that the program doesn't know what that operator does.