Ah, cool, well at least I understand what the error message is telling me now, thanks.
What I was trying to do was to sum up the logs of each item in my tuple (which I also tried with a list and that didn't work either). I thought the point of tuples was that I could do my function on each item and then move on, rather than doing each one individually, like:
log(2) + log(3) + log(5)
et cetera.
I do see the problem now with assigning the name of "sum"--I shouldn't do that because it's one of the restricted words. *nods*
Well, I still don't know how to do this, but now I know one way of not doing it, which is a pretty good start. Shall try again tomorrow when I have teh brainz.
no subject
What I was trying to do was to sum up the logs of each item in my tuple (which I also tried with a list and that didn't work either). I thought the point of tuples was that I could do my function on each item and then move on, rather than doing each one individually, like:
log(2) + log(3) + log(5)
et cetera.
I do see the problem now with assigning the name of "sum"--I shouldn't do that because it's one of the restricted words. *nods*
Well, I still don't know how to do this, but now I know one way of not doing it, which is a pretty good start. Shall try again tomorrow when I have teh brainz.