Python newbie weird run output

Deleting lines will not fix the problem, cannot get rid of the faulty lines of code. Problem 1.jpg

How do I get the program to recognise the amended code?

I’m confused about what is going on here, as you show us two different versions of the function.

In the second version, the line:

wordlist = text.split

should read:

wordlist = text.split()

Thank you for your reply. That is the problem. When I started getting these outdated lines of code I decided to use the solution for the function and saved that correct function. When testing the function  with old_macdonald(‘macdonald’) I get the error from a previous version. Thanks for the ().
I have no idea as to what is going on.


Sorry about that. Function should read master_yoda not macdonald.