Dictionary vs if-elif?

William Dandreta wjdandreta at worldnet.att.net
Tue Jun 20 20:56:16 EDT 2000


Hi Ralf,

That looks good , I had not thought of it.

Bill

>bogusCodes = ( '1.', '31', '90', 'AZ' ...... )
>...
>if item in bogusCodes:
>  do something useful






More information about the Python-list mailing list