Why does Python code use len() function instead of a length method?
I know that python has a len() function that is used to determine the size of a string, but I was wondering why it’s not a method of the string object.
I know that python has a len() function that is used to determine the size of a string, but I was wondering why it’s not a method of the string object.
For example, I get a string: