1List = ["Elephant", "Snake", "Penguin"]
2
3print(len(List))
4
5# With the 'len' function Python counts the amount of elements
6# in a list (The length of the list).
7# In this case the output is '3' because there are 3 elements in the list.
1# List of strings
2listOfElems = ['Hello', 'Ok', 'is', 'Ok', 'test', 'this', 'is', 'a', 'test']
3len(s)
1mylist = ["abc", "def", "ghi", "jkl", "mno", "pqr"]
2
3print(len(mylist))
4
5# output 6