Ensure your scheme contains A , Z , and space to pass the autograder. ✅ Answer
| Scheme | Rule | Example ('A') | |--------|------|----------------| | | Add a fixed number to each character’s position | A(0)+3 = 3 | | ASCII-based | Use ord() but modify it (e.g., subtract 30) | 65 → 35 | | Custom Alphabet Map | Create a dictionary: 'A':1, 'B':2,… | 1 |
The exercise on CodeHS isn't about finding a secret answer—it's about mastering the concept of transforming data. The solution above gives you a working, autograder-friendly implementation while teaching you how ord() and chr() form the backbone of text encoding. 8.3 8 create your own encoding codehs answers
Is it a letter, a number, or a space?
Keep these critical rules in mind to ensure your solution passes the autograder without errors: Ensure your scheme contains A , Z ,
As he worked on his encoding project, Max began to think about the possibilities of secret messages and codes. He had always been fascinated by cryptography and the art of hiding messages in plain sight.
Before shifting, reverse the entire message. Is it a letter, a number, or a space
While CodeHS allows for creativity, most students find success using one of two classic methods:
This is more “cryptographic” and still reversible.
If you can tell me you want to use, I can help you write the exact code to make it work. Share public link
Decide which characters your encoding will support. The most common set includes: