Write a Python program that takes a sentence as an input and outputs a list of words in it in reverse order.
This is a test.
def reverse(sentence): 
    words = sentence.split(" ")   
    rev_words = words[::-1] 
    rev_sentence =' '.join(rev_words)  
    return rev_sentence