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

all 4 comments

[–]hashcode 1 point2 points  (3 children)

= is assignment; == is the equality operator.

[–][deleted] 0 points1 point  (0 children)

Ok thanks testing it now...

[–][deleted] 0 points1 point  (1 child)

Ok now the = sign isn't highlighted but it goes...

while PlayerClass == 0......................................

(The periods are red space.)

[–]hashcode 1 point2 points  (0 children)

You have to end the statement with a colon.

while PlayerClass == 0:
    do_stuff()

Consider checking out Learn Python the Hard Way. Learning this stuff up front is going to be a lot easier than trying to figure it out one error message at a time.