On Feb 8, 4:43 am, "Dongsheng Ruan" <[EMAIL PROTECTED]> wrote: > I got feed back saying" list object is not callable". But I can't figure out > what is wrong with my code. > > A=[3,5,4,9,6,7] > l=len(A)-1 > > for i in range(l): > print A(i)
What the others said, *plus*: (1) you are subtracting 1 off the length, so after the change from () to [], the last item would not be printed. (2) have you considered working through a tutorial? Cheers, John -- http://mail.python.org/mailman/listinfo/python-list