Why doesn't this decoder I tried to make work?


#1

It is supposed to translate it to “Hello There” but instead, nothing happens. There isn’t even an error message. I want to know what I did wrong, and what I could do better.

edit: I just remembered the .split() method, which I think I could have used, but even still, I do not understand why this code returns nothing.

edit 2: I have improved it quite a bit (https://imgur.com/a/CDg2rcu), but it still returns nothing, and I am not sure why.

edit 3: it was because I forgot to say print… it works now. Disregard this post.