Find longest word in a text

Write a function called find_longest that returns the longest word from a given sentence.
# create function find_longest here...
print(find_longest('To be or not to be.')) # expected: 'not' print(find_longest('The best way to predict the future is to invent it.')) # expected: 'predict'
Python
Setting up Python environment...
Output