I use the method split() of the string class and supposedly it returns a list, but it isn't a common list because I can't use list methods like count()
I've tried to use the count method of list but it doesn't work.
def do_prueba(self, s):
lista=s.split()
len=lista.count()
print(len)
I want to know the length of that list. I'm new to Python sorry.