# example of len() function
list_number = [6, 3, 8, 0]
length = len(list_number)
print("The lentgh of the list is: " + str(length))
thistuple = ("apple", "banana", "cherry")
print(len(thistuple))
list1 = [1,2,3]
print(len(list))
len([x for x in range(10)])
10
len([1,2,3,[1,2,3]])
4
>>> list = [a, b, c]
>>> len(list)
#output 3
list = [a, b, c]
len(list)
#output 3
>>> len([1, 2, 3])
3
myList = [1,2,3]
len(myList) #Output 3
alphabet=['a','b','c','d','e']
# length of list or size of a list
print('length of list:',len(alphabet))
nestedList = ['Krishna', 20,'John', [20, 40, 50, 65, 22], 'Yung', 11.98]
print("Original List = ", nestedList)
print("Length of a Nested List = ", len(nestedList[3]))
# Let's create a list with a few sample colors
colors = ["Red", "Blue", "Orange", "Pink"]
print(len(colors)) # Expected output - 4
len(list)
len([1,2,3,4,5,6,7])