Human: Can you show me a Python code to change a sentence to a list of words. Assistant: 
Here is a Python code to change a sentence to a list of words

import re

def sentence_to_words(sentence):
    """Change a sentence to a list of words.

    Args:
        sentence (str): Sentence to be changed

    Returns:
        List of words in the sentence
    """
    return sentence.split()

# Enter the string
sentence = "This is a sentence"

# Calling the function
words = sentence_to_words(sentence)

# Printing the result
print(words)

#Example Output
# ['This', 'is', 'a', 'sentence']

#Remember to inspect code for bugs.