0
What is Len (Lenght) in python?
Please help me to understand the definition of lenght
1 Answer
+ 3
It's quite simple it will find the length of the given argument. For exempt if you are given your class and asked what is its exact strength then what will you do you will count all the members of class Similarly we use len function to count the number of members present in it for ex
len("ayush kumar")
Will be equal to 11 because of 5 letters of ayush , 5 letters of Kumar and 1 for blank space " "
Means totally 5+1+5 = 11