Created
March 25, 2022 19:05
-
-
Save ErikBoesen/e9cc9dae6b3b15863461c23c08098faa to your computer and use it in GitHub Desktop.
This file contains 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
with open('/tmp/list', 'r') as f: | |
l = f.read().strip() | |
print(l) | |
for raw in l.split('\n'): | |
year, name = raw.split(': ') | |
print("{name: '" + name + "', year: " + year + "},") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment