rrr at ronadam.com
Sat Jun 4 12:56:01 EDT 2005
Elliot Temple wrote:
> I want to write a function, foo, so the following works:
> def main():
> n = 4
> print n
> #it prints 7
> if foo needs to take different arguments, that'd be alright.
> Is this possible?
It is possible if you pass mutable objects to foo such as lists or
Is this what you are looking for?
d = [3,]
var = 7
More information about the Python-list