gett error message: "TypeError: 'int' object is not callable"

Paul Rubin http
Thu Jul 9 20:22:06 EDT 2009


Nick <nleioatt at gmail.com> writes:
> text = file.readlines()
> len = len(text)
> fields = text[1].split()

Is that intended to split the first line of the file?  Remember
that arrays in python begin at index 0.



More information about the Python-list mailing list