It will work fine if you use str.split()
i.e,
s = ["this is a string","python python python","split split split"]
map(str.split, s)
gives:
[['this', 'is', 'a', 'string'],
['python', 'python', 'python'],
['split', 'split', 'split']]
The error message states:, therefore, the interpreter does not recognize , because it is not a built-in function . To do this, you need to associate with the inline object . NameError: name 'split' is not definedsplitsplitsplitstr
: @Ivc /.