feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
1978;Kicked In The Teeth
1985;Playing with Girls
1985;Shake Your Foundations
1990;Thunderstruck

View File

@@ -0,0 +1,3 @@
01023;queen.txt
02346;kiss.txt
16750;acdc.txt

View File

@@ -0,0 +1,3 @@
1980;Two Sides of the Coin
1985;King Of The Mountain
1979;I Was Made for Lovin' You

View File

@@ -0,0 +1,31 @@
songs = dict()
artists = open("artisti.txt", "r")
for artist in artists:
artist = artist.split(";")
artCode = artist[0].strip()
songsFile = open(artist[1].strip(), "r")
for song in songsFile:
song = song.split(";", 1)
year = song[0]
title = song[1].strip()
if year not in songs:
songs[year] = []
songs[year].append({"artist": artCode, "title": title})
songsFile.close()
artists.close()
years = sorted(list(songs.keys()))
for year in years:
print(year + ":")
for s in songs[year]:
print(s["title"] + "\t" + s["artist"])

View File

@@ -0,0 +1,3 @@
1980;Crazy Little Thing Called Love
1985;Its a kind of magic
1978;Under pressure