Rookie Question: Passing a nested list into a function?

Brett bjgol at yahoo.com
Thu Apr 14 21:51:08 EDT 2005


I am trying to pass the value of a nested list into a function (to my "if" 
statement) as follows:

textfilelist = [["titlelist1[x][1]"]]
def idfer(listlength, comparelistlength, list):
        while x < (listlength - 1):
                       while y < comparelistlength:
                            if list == titlelist2[y][1]:
(I cutoff the end to focus on the problem)

#Here i call my function hoping i am passing the value within 
textfilelist[0][0] to my function
idfer(textfilelist[0][1], textfilelist[1][1], textfilelist[0][0])


--------------
I don't if there is a "legal" way to do this, but I would appreciate some 
guidance.

Thanks,

Brett





More information about the Python-list mailing list