Languages
[Edit]
EN

Python - check string length

0 points
Created by:
Faith-W
383

In this article, we would like to show you how to check string length in Python.

Quick solution:

len(string)

 

Practical example

In this example, we get the length of the "dirask.com" string using len() function.

string = "dirask.com"
print(len(string))

Output:

10

Python - string (popular problems)

Python - check string length
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join