i have made a simple music player that will randomly choose a song from the list (music)
how can i expand this to a whole directory of music without having to make a list with them all in
heres the code:
import webbrowser, random
music = [#music was here]
while 1:
choice = float(raw_input("Press 1 to play a new song"))
if choice == 1:
song = random.choice(music)
webbrowser.open(song)