[Tutor] walking a list
Wed, 12 Dec 2001 02:17:43 -0500
Ok, let's walk through a list.
I created a file, testlist.txt, with several addresses in it.
members = f1.readlines()
Sokay, now try to walk it in a for loop:
for i in members:
Gets this error:
Traceback (most recent call last):
File "<pyshell#119>", line 2, in ?
TypeError: sequence index must be integer
ok, how do I get it to walk through a loop, performing a block of code
for each item in the list?
-Kirk D Bailey (C)2001
Addme! icq #27840081
Within the sweep of his sword, Each man is an Ubar.