When you call...
And then something like:
while True: random_song, random_artist = song_selection(songnames, songartists) split_song(songnames) breakYou are passing songnames (a list) to split_song. A list does not have "split" as the error mentions. Instead you should pass the random_song that you have chosen previously in song_selection.
And then something like:
def split_song(random_song): for word in random_song.split(" "): print(word[0])By the way, your username/password checking process allows the users to guess if any other person has certain password, what is in most scenarios a bad idea.