I am having some trouble getting the the final two functions in EX25 two work as shown in the book. I can complete all of the steps before in python running in the shell, but the last two functions don’t return anything. I was able get it them to return properly by adding a return line to each of them, but I would really like to understand what mistake I am making when trying to use the solution in the book. Thanks!!
having issues with print_first_and_last(sentence) and print_first_and_last_sorted(sentence)