Start building now
Choose how you want to begin this project.
Open it privately for practice or create a shared workspace to build it together.
No setup required • Guided steps inside the editor
Private practice
Open a private editor and work through the steps at your own pace.
Start project aloneShared workspace
Create a live session so you can teach, pair, or build the project together.
What you'll build
A score tracker that finds the team with the highest score after repeated input.
What you'll learn
- How to repeat input until a stop word is entered
- How to track the highest value seen so far
- How to store the matching team name
- How to output the winning result clearly
How it works
The user enters team names and scores one by one.
Typing "stop" ends the input process.
The program compares each score with the highest score seen so far.
It stores and prints the winning team and score at the end.
Build path
These steps appear inside the editor so you can build one part at a time.
- 1
Step 1
Ask for a team name
Use input() to ask for a team name. Allow the user to enter "stop" to finish.
- 2
Step 2
Repeat until stop is entered
Use a loop so the program keeps asking for team names until the user enters "stop".
- 3
Step 3
Ask for the score
When the team name is not stop, ask for the team score and convert it to an integer.
- 4
Step 4
Track the winning team
If the new score is greater than highest_score, update highest_score and winner_name.
- 5
Step 5
Print the final winner
When input ends, print a message showing the winning team and score.
More to explore
Want a different challenge?
Browse more guided projects, or come back and start this one whenever you are ready.