Lets say I have a list of strings with different method names, lets consider one-element list:
list = [split]
Is there any way to fetch the method name from the list when I want to use it? I'll give an exmple below, which doesn't work for me:
string = 'This is a string'
splitted_string = string.list[0]()
When I run the code, it's giving me:
AttributeError: 'str' object has no attribute 'list'