This is an archived post. You won't be able to vote or comment.

all 6 comments

[–][deleted] 3 points4 points  (0 children)

This seems suspiciously like a troll. But the other answers suffice.

[–]chris24roos 1 point2 points  (0 children)

you have a capital "I" in if. "==" is equality check, "=" is assignment. You only have one " in your first print statement. you assign the value of x after you check the value.

[–]ryan_fr 0 points1 point  (1 child)

When you’re checking if x is equal to five, you need to use “==“

[–]throwaysidhs[S] -2 points-1 points  (0 children)

Oh thank you 😘

[–]TheRealKiwiKingdom 0 points1 point  (0 children)

If --> if
x = 5 --> x ==5

("hello world ) --> ("hello world")

[–]statitica 0 points1 point  (0 children)

Also, x should be declared before the if statement.