Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to get python list length

#a list
cars = ['Ford', 'Volvo', 'BMW', 'Tesla']
#some updates on list
cars.append('Honda')
cars.append('Tata')
#find length of list
length = len(cars)
print('Length of the list is :', length)
6
Source by www.howtouselinux.com #
 
PREVIOUS NEXT
Tagged: #python #list #length
ADD COMMENT
Topic
Name
3+7 =