Languages
[Edit]
EN

Python - how to check string lenght?

0 points
Created by:
Dirask Community
6300

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 check the length of the "dirask.com" string using len() function.

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

Output:

10

Python - string (popular problems)

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