function to display the number of elements in a list code example
Example: count number items in list python
mylist = ["abc", "def", "ghi", "jkl", "mno", "pqr"]
print(len(mylist))
# output 6
mylist = ["abc", "def", "ghi", "jkl", "mno", "pqr"]
print(len(mylist))
# output 6