Regarding usage of predefined functions week5 lists

when we want to find the length of a list we are using
b=[1,2,3,4,5]
len(b)
when we want to copy elements in b to new list we are using
c=b.copy()

my doubt is when to use
function(object) and
object.function()

@jyothindrapavan len is a function but copy is not a function. Copy is a method of list.

1 Like