for sentence in reviewlist: print(sentence) scores = sid.polarity_scores(sentence) for key in sorted(scores): print(\'{0}: {1}, \'.format(key, score