This searches for a specific string within the given array and returns the index of the array.
However, when I run the code I get the following error:
After looking online I have found questions on errors for iteration on other types such as ‘object’ but not on ‘callable’.
Any help would be greatly appreciated thanks !