EN
Python - check string length
0 points
In this article, we would like to show you how to check string length in Python.
Quick solution:
xxxxxxxxxx
1
len(string)
In this example, we get the length of the "dirask.com"
string using len()
function.
xxxxxxxxxx
1
string = "dirask.com"
2
print(len(string))
Output:
xxxxxxxxxx
1
10