Currently I have my data in a directory
myDict = {'a':'Andy','b':'Bill','c':'Carly' }
I want to achieve something like
input = a --> output = Andy
input = ab --> output = Andy Bill
input = abc --> output = Andy Bill Carly
How can I do that ? Please help me