Hey, i am a python newb, so dont laugh
Say i have
Code:
contents = ['rat' 'dennis']
and later on..
Code:
def look(object=None):
if len(contents) > 0:
I get a global error, contents is not defined.
How can I access the contents list from inside a function?
Thanks