83 8 Create Your Own Encoding Codehs Answers -
In this exercise, we'll dive into the world of encoding and create our own simple encoding scheme. This project is inspired by the popular CodeHS activity "83 8 Create Your Own Encoding."
If you want to build a completely unique encoding (and fully understand it), follow these steps:
Before looking at the answers, let's break down the prompt. Typically, CodeHS 8.3.8 states something like:
"Create your own encoding scheme. Write two functions:
encode(message)anddecode(encodedMessage). Your encoding should map each letter of the alphabet to a unique symbol or string of symbols. You must handle spaces and punctuation. Test your functions by encoding a message and then decoding it back to the original."
The term "83 8" in your search refers to Section 8, Lesson 3, Exercise 8 – a common typo or shorthand used by students searching for "8.3.8".
In this exercise, you are likely asked to: 83 8 create your own encoding codehs answers
The encoding must be your own – not a simple Caesar cipher or reverse.
Assumption: Input is lowercase letters and space. Aim: playful, reversible substitution with a simple key.
Key
Base mapping
Transform with key
Obfuscation (optional)
Complete example
Decoding
my_decoder = {} for key, value in my_encoding.items(): my_decoder[value] = key
Examples of simple custom encodings:
| Idea | How it works | |------|----------------| | Swap pairs | Swap every two characters. “HELLO” → “EHLLO” | | Add a key number to each char code | ord(char) + 5, but wrap around 255 | | Substitution cipher | Map A→M, B→N, etc. (shift with a pattern) | | Bitwise XOR | XOR each character with a fixed key | | Custom dictionary | Replace common words with symbols |
Pick one you fully understand.
To encode a string, you need to look at one character at a time, change it based on a rule, and add it to a new result string.
Common Encoding Rules: