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.
submitted by /u/GraffEclipse
[link] [comments]
r/learnpython 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. submitted by /u/GraffEclipse [link] [comments]
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.
submitted by /u/GraffEclipse
[link] [comments]