[Tutor] Is this correct syntax for what I want?

Terry Carroll carroll at tjc.com
Fri Jun 23 06:38:27 CEST 2006


On Thu, 22 Jun 2006, Nathan Pinno wrote:

> I want to be able to add and subtract from a number in a tuple in a
> list. Is this the correct syntax?
> 
> letterlist[x] = letterlist[x] + amount # for addition
> 
> letterlist[x] = letterlist[x] - amount # for subtraction

Try it.



More information about the Tutor mailing list