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.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to