Earlier quoted context omitted.
Of, off the top of my head: for word in (set(lyrics_list) & set(words)): print('{} is in the lyrics'.format(word))
Even shorter, nice. How about this one liner, the last bit is looking a bit messy any ideas? print " is in the lyrics \n".join([set(lyrics_list) & set(words)]), "is in the lyrics"
Don't ever do this.
print('\n'.join(['{} is in the lyrics'.format(word)) for word in (set(lyrics_list) & set(words))])