The following example shows the error I am getting when trying to use a string function inside a function call to map. I need help with why this happening. Thanks.
>>> s=["this is a string","python python python","split split split"]
>>> map(split,s)
Traceback (most recent call last):
File "<pyshell#16>", line 1, in <module>
map(split,s)
NameError: name 'split' is not defined
though split() is an in-built function, but it still throws this error?