[Baypiggies] Discussion for newbies/beginner night talks (fwd)
Dennis Reinhardt
DennisR at dair.com
Sat Feb 10 06:20:01 CET 2007
Danny,
Thanks, I did get it before. I like your (first_name, last_name) key
example. Very neat technique.
It is good to hear from you. I hope you are doing well.
At 09:00 PM 2/9/2007, Daniel Yoo wrote:
>I don't think my reply got through the first time (forgot that I'm using a
>different email address at WPI now.) Let me refoward my message.
>
>Hi Dennis,
>
>##########################################################
>## A little better
>def add_phone(book, first_name, last_name, phone_number):
> book[(first_name, last_name)] = phone_number
>
>def lookup(book, first_name, last_name):
> return book[(first_name, last_name)]
>##########################################################
---------------------------------
| Dennis | DennisR at dair.com |
| Reinhardt | http://www.dair.com |
---------------------------------
More information about the Baypiggies
mailing list