Given a number, translate it to all possible combinations of corresponding letters. For example, if given the number 1234
, it should spit out abcd
, lcd
, and awd
because the combinations of numbers corresponding to letters could be 1 2 3 4
, 12 3 4
, or 1 23 4
.
I was thinking of ways to do this in Python and I was honestly stumped. Any hints?
I basically only setup a simple system to convert single digit to letters so far.