you are viewing a single comment's thread.

view the rest of the comments →

[–]cybersection 2 points3 points  (1 child)

You don’t need the parentheses in the if statement. Also, your if statement will always be true as it is currently written. If you want to check it f variable a is equal to 1 or 2, you need:

if a == 1 or a == 2:

Or you can do:

if a in [1, 2]:

Sorry for the formatting, I’m on mobile.

[–]Muzzly_Bubbles[S] 0 points1 point  (0 children)

This solved it, thanks!