code:
def sort_artists(x): artist = [] earnings = [] z = (artist, earnings) for inner in x: artist.append(inner[0]) earnings.appen