Get the length: number of items inside a string : String Length « String « Python






Get the length: number of items inside a string

Get the length: number of items inside a string

print len('abc')         # length: number items 


           
       








Related examples in the same category

1.keeps '\' (Back splash) literallykeeps '\' (Back splash) literally
2.Get the length of a string with escape characters insideGet the length of a string with escape characters inside
3.Output and get length of a string with special characters
4.For Statements to list the string length For Statements to list the string length
5.Built-in function len() returns the length of a stringBuilt-in function len() returns the length of a string