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 alone

Shared 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

1

The user enters team names and scores one by one.

2

Typing "stop" ends the input process.

3

The program compares each score with the highest score seen so far.

4

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. 1

    Step 1

    Ask for a team name

    Use input() to ask for a team name. Allow the user to enter "stop" to finish.

    Complete in the editorHint available
  2. 2

    Step 2

    Repeat until stop is entered

    Use a loop so the program keeps asking for team names until the user enters "stop".

    Complete in the editorHint available
  3. 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.

    Complete in the editorHint available
  4. 4

    Step 4

    Track the winning team

    If the new score is greater than highest_score, update highest_score and winner_name.

    Complete in the editorHint available
  5. 5

    Step 5

    Print the final winner

    When input ends, print a message showing the winning team and score.

    Complete in the editorHint available

More to explore

Browse more guided projects, or come back and start this one whenever you are ready.