Prep Problem - 26

In this problem, you should write a function named longest_word. This function should have one parameter, a string with words separated by spaces. If there is a tie, it should return the earliest word in the string. The function should return the longest word from the parameter string. A few examples:

Name the program prep26.py. Make sure that gradescope gives you the points for passing the test case.