Built-in function len() returns the length of a string : len « Buildin Function « Python






Built-in function len() returns the length of a string

Built-in function len() returns the length of a string



s = 'supercalifragilisticexpialidocious'
print len(s)

           
       

Related examples in the same category

1.len() functionlen() function
2.Built-in function len(): get the length of a listBuilt-in function len(): get the length of a list