looping through lists
Nick Vargish
nav+posts at bandersnatch.org
Thu Oct 9 15:08:49 EDT 2003
You can use the "x in seq" form to check to see if a given sequence
(tuple or list) contains x, with something like the following...
for l in listoflists:
if not '-' in l:
tot += 1
Hope that helps,
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
More information about the Python-list
mailing list