# A program to print songs and voutes myList = [35, "bicycle race", 40, "bohemian rhapsody", 50, " under pressure"] votes = 0 songs = "" for element in myList: if type(element) == int: votes = votes + element if type(element) == str: songs = songs + element+ ', ' print "\nVotes:",votes,"\n\n","Songs:", songs[:-2]