When I am typing the commands out, they all seem to work fine except
ex25.print_first_and_last(sentence)
I get an error
All
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\hp\lpthw\ex25.py”, line 29, in print_first_and_last
print_last_word(words)
NameError: name ‘print_last_words’ is not defined