Either map them to themselves or include them in your dictionary.
As they continued to work on their encoding project, Max and Emma realized that they had stumbled upon something much bigger than just a school assignment. They had created a secret language, one that only they could understand. 8.3 8 create your own encoding codehs answers
Depending on your specific course version, you may need to enter this mapping into a configuration tool or write a short script to demonstrate it. Either map them to themselves or include them
Rare for basic CodeHS, but brilliant students try Huffman-style encoding: assign shorter codes to frequent letters (e, t, a) and longer codes to rare letters (z, q). Depending on your specific course version, you may
def main(): # Demonstration required by CodeHS original = "Hello World" print("Original:", original) encoded = encode(original) print("Encoded: ", encoded) decoded = decode(encoded) print("Decoded: ", decoded)
Use the charCodeAt() and String.fromCharCode() methods in JavaScript (or similar functions in Python) to shift the numerical value of the character.
Need more help? Check the CodeHS documentation on dictionaries or ask your instructor for clarification on the specific requirements of your version of 8.3.8.