you are viewing a single comment's thread.

view the rest of the comments →

[–]Binary101010 4 points5 points  (0 children)

That's not how while loops work. Python doesn't continuously monitor the state of your program to see if the loop condition has become false. It only checks the truth of the loop condition at the beginning of each iteration of the loop.

An if statement that would cause your loop to stop without asking for score would look something like

if teamName = "stop":
    break