Articles → Python → Len Function In PythonLen Function In PythonIn this article, we will discuss about len function in pythonPurpose 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))Once you run the above code, you will get following outputClick to EnlargePosted 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