From the course: Programming Foundations: Real-World Examples

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Reverse lookup issues

Reverse lookup issues - Python Tutorial

From the course: Programming Foundations: Real-World Examples

Start my 1-month free trial

Reverse lookup issues

- I'm all done calling all my friends to invite them over. (ringing) And now somebody's calling me but I don't recognize this number and I don't like to answer the phone if I don't know who's calling. Maybe I can find them in my Rolodex except my Rolodex is organized alphabetically so that given a person's name, I can very quickly find their phone number but it's not designed to work in the other direction. Right now I have a phone number and I want to find a corresponding name but there's not an efficient way to do an inverse lookup with the Rolodex so the best I can do is manually search through each card until I find the number that I'm looking for. And it better be quick before this person hangs up. Ah, it's my dad. I'll answer that call. Hey dad. Oh, sorry mom. I thought it was dad because of the phone number. Oh, I forgot that you and dad share the same phone number at your house. That explains it. I had separate cards in my Rolodex for you and dad and both of those cards have…

Contents