Articles → Python → Len Function In PythonLen Function In PythonIn this article, we will discuss the len function in Python.Purpose The len function is used to calculate the length of the string.Example message = "This is the test string" print("Length of the message is", len(message))Output Posted By - Karan Gupta Posted On - Thursday, February 21, 2019 Query/Feedback Your Email Id** Subject* Query/Feedback Characters remaining 250**
message = "This is the test string" print("Length of the message is", len(message))
Query/Feedback