Created
July 10, 2020 23:29
-
-
Save pydanny/8838f4559d5a8e592830b0277a8b2ecf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# TODO: Add a comment above each line explaining what it does | |
# TODO: Add the ability to specify a game | |
# TODO: Make it so you don't have to run the script each time (while loop!) | |
# TODO: Convert this to use the Python built-in CSV library | |
from datetime import datetime | |
score = input("What score did I get? ") | |
with open("score.csv", "a") as f: | |
f.write(f"{datetime.now()}, {score}\n") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment