len()
>>> someList=[]>>> print len(someList)0
just do len(MyList)
len(MyList)
This also works for strings, tuples, dict objects.
strings
tuples
dict
len(myList) should do it.
len(myList)
len works with all the collections, and strings too.
len