/creating_dicts_and_arrs.py Secret
Created
March 16, 2024 19:03
Spotify API - create_arr_with_split
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
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