Greetings,
I just want to know how to split a string using values of dictionary:
dic = {'': '000', ' ': '011', 'e': '1111', 'g': '10', 'h': '010', 'o': '00', 'p': '1101', 's': '1110', 'r': '1100'}
word = '1000011100001110001101010111111001110000'
for items in dic.values():
word.split(items)
.... and when i do this i get this:
....BUT IM ACTUALLY SUPPOSE TO GET THIS OUTPUT:
IF ANYBODY CAN HELP IT SHALL BE GREATLY APPRECIATED THANKS!