len() function is an inbuilt function in Python programming language that returns the length of the string.
It takes string as the parameter.
It returns an integer which is the length of the string.
Below is the Python implementation of the len() method.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course