Possible Duplicate:
Get the size of a list in python?
I need to be able to count how many values there are in total there are in a list. eg. [1,5,9,4,6], there are 5 values. I have tried using the
list.count() function, but that returns how many of one value there is.
Is there any way to calculate how many values there are in the list?
Thanks
(The outcome/amount also needs to be stored in a variable.)