High Score¶

Write a little program that asks the user for their name and their high score. Then store that name and that “high score” in a file. The file should be called “score.txt”.

The score should be overwritten, not appended.

Name your program high_score.py

You got a high score!

Please enter your score: 32767
Please enter your name: Mitchell
Data stored into score.txt.

©2021 Daniel Gallo

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.

Creative Commons License

Adapted for Python from Graham Mitchell’s Programming By Doing