Ask coding questions

← Back to all posts
Append function Not working - List returning empty
MichaelFaulkner (9) I can't seem to figure this ou and I know I asked for help on this already but for some reason the decode function doesn't work. It just returns empty. Please help

Answered by malvoliothegood (188) [earned 5 cycles]
View Answer
malvoliothegood (188)

Your program seems to be working for me. You can simplify it by using a dictionary to store the encoding. This is how I would do it:

MichaelFaulkner (9)

@malvoliothegood thank you! I actually figured out what was wrong and fixed it, I forgot to take down this post though. I haven't learned about using dictionaries yet but I'll give it a try! Thanks a lot