[Tutor] getting names from other funcs
kevin parks
kp8 at mac.com
Mon Mar 22 17:22:12 EST 2004
Major brain fart here:
I can't recall how you get to a name in another function. Let's say
that i have a func called foo and it has certain variables and values
held in it that i want to grab and use in test():
def foo(seq):
'''foo -- makes foo of sequence'''
output = []
bob = 32768
fred = ['a', 6, 'yo mama', 'c']
return fred
def test():
# how can i get access to the names bob and fred in here?
More information about the Tutor
mailing list