[Tutor] please help: conditional statement and printing element
Alan Gauld
alan.gauld at freenet.co.uk
Tue Jan 11 21:39:57 CET 2005
> script:
> >>> for i in range(len(psl)):
for line in psl:
if line.split()[0].strip() == '25':
print line
Does that work?
Alan G.
More information about the Tutor
mailing list