Hiya,
I have run into an issue where i can't format a string to be printed.
The function is suppossed to convert Binary into Text which is does brilliantly but the printed out result is formatted all the way the right and not the left.
I have tried resolving this by looking up how to format the string but im getting no luck. Im hoping someone can resolve this issue for me.
Heres the code: https://pastebin.pl/view/9bbd4aa9
I tried different ways to format it but im still new to Python 3. I tried putting "ascii_text" into another string to format it, so i could print that string but it didn't work.
The method i tried is also on the pastebin link.
Some advice for this would be great.
Heres a quick Binary code that can be used: "0100100001100101011011000110110001101111"
The decoded version should say "Hello".
I have run into an issue where i can't format a string to be printed.
The function is suppossed to convert Binary into Text which is does brilliantly but the printed out result is formatted all the way the right and not the left.
I have tried resolving this by looking up how to format the string but im getting no luck. Im hoping someone can resolve this issue for me.
Heres the code: https://pastebin.pl/view/9bbd4aa9
I tried different ways to format it but im still new to Python 3. I tried putting "ascii_text" into another string to format it, so i could print that string but it didn't work.
The method i tried is also on the pastebin link.
Some advice for this would be great.
Heres a quick Binary code that can be used: "0100100001100101011011000110110001101111"
The decoded version should say "Hello".