PDA

View Full Version : function that modifies global variable of my choice


Python
07-12-2009, 04:13 PM
Hi everybody! I don't know if this is possible to do, but here goes: Hi have a program where I have several lists. Let's call them l1, l2, l3, l4. Often in the code, I need to delete a certain item from 2 of the lists I have. I thought about defining a function that only needs to know which lists...