Q: elements in a list [newbie]

Bill Scherer Bill.Scherer at VerizonWireless.com
Thu Feb 1 17:57:58 EST 2001


len, as in:

l = file.readlines()
length = len(l)




"Harvest T. Moon" wrote:
> 
> i hope this is not some kind of 'very stupid' question, how can i find out
> how many elements are in a list?
> (generated by file.readlines())
> 
> Harvest T. Moon
> 
> --
> http://mail.python.org/mailman/listinfo/python-list

-- 
William K. Scherer
Sr. Member of Applications Staff - Verizon Wireless
Bill.Scherer_at_VerizonWireless.com




More information about the Python-list mailing list