if choice == "5": while True: choice5 = input("1. add new Band 2. Play Songs to a certain Band" + " 3. View all Bands 4. back:\n") if choice5 == "1": band = Band() band.name = input("Enter Band name:") bandNum = int(input("Enter # of band Members:")) MP.retrieveArtists() MP.viewArtists() artistsIDsList = [] for i in range(0, bandNum): artistsIDsList.append(MP.myArtists[int(input("Enter # of the artist:"))-1].artist_id) band.addBand(artistsIDsList) if choice5 == "2": MP.retrieveBands() MP.viewBands() bandNum = int(input("Enter # of band"))-1 bandSongs = MP.myBands[bandNum].retrieveBandSongs() for i in range(0, len(bandSongs)): print(i+1, ". ", bandSongs[i].name) while True: songNum = int(input("Enter Song # to play or Enter 0 to back:"))-1 if songNum < 0 or songNum >= len(bandSongs): print("back") break else: print("Playing")