Languages
[Edit]
EN

Python - check string length

0 points
Created by:
Faith-W
503

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

Alternative titles

  1. Python - how to check string length
  2. Python - get string length
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Cross technology - 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