![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.python archiveSlicing every element of a list
From: Alex Dempsey <ispork@gmail.com>
Date: Tue Jul 12 2005 - 21:17:40 CEST
Recently I tried to slice every element of a list of strings. First I tried:
f = open("export.xls", "r")
for line in lines:
This went without returning any errors, but nothing was sliced or
for i in range(len(lines)):
This of course worked, but why didn't the first one work. Further why
|