Create a Python program that prints out the words in a sentence in reverse order.
I love programming.
def reverse_words(sentence):
    words = sentence.split()
    words.reverse()
    return " ".join(words)

print(reverse_words("I love programming."))