human
Can you show me a Python function to get word count across list of sentences.
assistant
Here is a Python function to get word count across list of sentences

import string

def get_word_count(sentences):
    """Returns the number of words in the given list of sentences."""
    return sum([len(sentence.split()) for sentence in sentences])

# Enter the sentences
sentences = ["This is a sentence", "This is another sentence"]

# Calling the function
print((get_word_count(sentences)))

#Example Output
# 8

#Remember to inspect code for bugs.