Suppose I have a list [1,2,3,4,5]
. Now I want to pass the elements of this list, starting from 3rd element to a method.
i.e. i want to invoke:
myfunction([3,4,5])
How can I do this in python. tried passing mylist[2]
, but it doesn't quite work this way it seems.