list length python

Posted by w3diy - 2 months ago

Find size of a list in Python

#!/usr/bin/python

list1, list2 = [123, 'xyz', 'zakhi'], [456, 'abc']
print "First list length : ", len(list1)
print "Second list length : ", len(list2)