[Solved] I can’t use if statements because invalid syntax


First of all, make sure your code is properly and regularly indented, as that is how Python decides what is and isn’t included in the if statement.

Second, you must add a colon after the condition or it will be a syntax error.

Your code should look like this:

print("Whose team are you on?")
die = int(input("1 - Mine     2 - Yours"))
if die == 1:
    print("good")
else:            #This is optional but always nice to include
    print("bad")

1

solved I can’t use if statements because invalid syntax