Example & Tutorial understanding programming in easy ways.

What the len() function do in Python ?

len() function in Python are able to find the length of some data types like string,list etc.

Example:

s="Mystring133"

print(len(s))

// it will print 11


l=[1,2,3,4]

print(len(s))

// it will print 4

Read More →