PythiloMedium · 25 min · Task 73 of 100 · progress kept in this browser

Phone keypad combinations

Return all letter combinations for a digit string containing only 2 through 9, in lexicographic order. Empty input returns [].

prefixes = ['a', 'b']
letters = 'de'
print([prefix+char for prefix in prefixes for char in letters])
Your task

Return all letter combinations for a digit string containing only 2 through 9, in lexicographic order. Empty input returns [].