Strings in python are enclosed by either single quotation marks, or double quotation marks.
Python string length | len()
- len() function is an inbuilt function in Python programming language that returns the length of the string, array, list, tuple, dictionary, etc.
- You can use len function to optimize the performance of the program. The number of elements stored in the object is never calculated, so len helps provide the number of elements.
It takes string as the parameter
It returns an integer which is the length of the string.