What is the error in this statement?


if scoreA = scoreB :


Use == for comparison, = for assignments.


Is there a difference between them?


Definitely. An assignment can only be made with single equals, and comparison can only be made with double equals.


Oh thanks :slight_smile:


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.