Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created July 10, 2020 23:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pydanny/8838f4559d5a8e592830b0277a8b2ecf to your computer and use it in GitHub Desktop.
Save pydanny/8838f4559d5a8e592830b0277a8b2ecf to your computer and use it in GitHub Desktop.
# 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