def decode(encoded_message): # XOR is its own inverse return encode(encoded_message)
If you want to include lowercase letters (26), digits (10), and a period (1), your total count jumps to . 83 8 create your own encoding codehs answers
Converting binary data into text for email attachments. def decode(encoded_message): # XOR is its own inverse
The CodeHS exercise tasks you with developing a custom binary scheme to represent text. While some CodeHS versions label 8.3.8 as "Word Ladder", the "Create Your Own Encoding" module specifically requires mapping characters to unique binary strings using the fewest bits possible. 1. Determine Minimum Bits and a period (1)
You need 5 bits for a standard capital letter encoding. 2. Create the Encoding Table