Linked Questions

Popular Questions

example:

a_list = [1, 2, 3]
a_list.len() # doesn't work
len(a_list) # works

Python being (very) object oriented, I don't understand why the 'len' function isn't inherited by the object. Plus I keep trying the wrong solution since it appears as the logical one to me

Related Questions