searching files
zweistein
zweistein at net.hr
Sat May 11 14:42:28 EDT 2002
"Chris Liechti" <cliechti at gmx.net> wrote in message
news:Xns920BCFECED397cliechtigmxnet at 62.2.16.82...
> so you can search:
> for name,number in addressList:
> if name == 'chris':
> print name, number
> break #found one, don't search for more
> else:
> print "no matching entries found"
>
> as you see there is no errorchecking in the above bits, for a real usabel
> programm one should check for illegal entries etc.
Thank you, I'll try this!
More information about the Python-list
mailing list