Construct a Python program to perform sentiment analysis on an input string and output the sentiment score.
Example sentence: I had a great day yesterday
import nltk

sentence = "I had a great day yesterday"

words = nltk.word_tokenize(sentence)

text = nltk.Text(words)

polarity_score = text.polarity_scores()

print(polarity_score)