How To/python/

@int len(sequence)@

Function returns length of sequence. Note that *this is function not method*!

len([0,1,2,3,4,5])
# returns 6
 
len({'a':1, 'b':2, 'c':3, 'd':4})
# returns 4