Project: Score Logger

Practice writing and appending scores to a text file to create a persistent score logger using Python file handling.

We'll cover the following

Task

Create a program that allows users to enter their names and scores and saves the information to a file.

Steps:

  1. Prompt the user for their name and score.

  2. Open a file called "scores.txt" in append mode ("a") and write the name and score to it.

  3. After saving the score, read the file’s contents and display them so the user can see all stored scores.

If you don’t know how to do this, click the “Show Hint” button.

Get hands-on with 1400+ tech skills courses.