len() function

The len() function returns the length (the number of items) of an object.

string = "Test"

print("len(string):", len(string))


Output:

len(string): 4

results matching ""

    No results matching ""