The len() function will return the length of a string or the number of items in a list.
>>> spam = ['cat', 'dog', 'moose']
>>> len(spam)
3
>>> len('European Swallow')
16
The len() function will return the length of a string or the number of items in a list.
>>> spam = ['cat', 'dog', 'moose']
>>> len(spam)
3
>>> len('European Swallow')
16