Skip to content

Instantly share code, notes, and snippets.

@cupofcodeblog
Created March 16, 2024 19:03
Spotify API - create_arr_with_split
def create_arr_with_split(song_to_album):
arr_with_split = []
for song in song_to_album:
split = create_split_array(song)
song = {
"song_title": song,
"album_title": song_to_album[song],
"split": str(split),
}
arr_with_split.append(song)
return arr_with_split
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment