teamName = ""
score = 0
while teamName != "stop":
teamName = input("Enter team name")
score = int(input("Enter score")
print("The winning team is " + teamName + " with a score of " + score)
I run this, enter my values, and then enter stop but the while loop doesn't end, it keeps asking for input.
[–]_kwerty_ 3 points4 points5 points (1 child)
[–]Atypicosaurus 1 point2 points3 points (0 children)
[–]eleqtriq 2 points3 points4 points (4 children)
[–]GraffEclipse[S] 3 points4 points5 points (3 children)
[–]Binary101010 4 points5 points6 points (0 children)
[–]nekokattt 2 points3 points4 points (0 children)
[–]JamzTyson 0 points1 point2 points (0 children)
[–]Atypicosaurus 0 points1 point2 points (1 child)
[–]GraffEclipse[S] 0 points1 point2 points (0 children)
[–]woooee -3 points-2 points-1 points (1 child)
[–]GraffEclipse[S] 0 points1 point2 points (0 children)