print out all words from a phone numbers

From Programming Interviews Exposed:

A phone has up to four possible letters for each digit. Write a program to print out all possible words (not necessarily dictionary words). Do it recursively and iteratively.

In Python:


Leave a comment -


I'm a .NET, PHP, Python, and Javascript developer. Also Project Manager, Scrum Master, and Juilliard trained violist. You cannot connect with me on Facebook, Twitter, or LinkedIn so don't ask.