I have started learning python programming language and learning string in python.
i am using following code to find the length of string.
a = "Hello, World!"
print(a.len())
but code is not working. I know i am using method len after variable. But why other method works after variable? E.G print(a.lower()) to lower sting, print(a.upper()) to upper string