"Karsten Heymann" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Hi Jeff,
|
| Jeff Nyman <[EMAIL PROTECTED]> writes:
| > I did try this:
| >
| > for count in range(0, len(DC_List)):
| > DC_List.insert(count, '')
|
| On additional note: You can be quite sure you'll never have to iterate
| over the length of a list (or tuple) in python. Just iterate over the
| list itself:
|
| for DC in DC_List:
| # do something with DC.
Unless you want to modify the list in place.
for i in range(len(cities)):
cities[i] = (cities[i], '')
#or perhaps better
for i,city in enumerate(cities):
cities[i] = (city,'')
tjr
--
http://mail.python.org/mailman/listinfo/python-list