|
) required to uniquely represent your desired character set.
| Mistake | Why It Happens | Fix | |---------|----------------|-----| | Forgetting to handle spaces | Space ( ' ' ) has ASCII 32. After shift, it becomes 37, which is '%' . Your decode must reverse correctly. | Test with "a b" to ensure spaces survive round-trip. | | Using a non-reversible rule | Example: multiplying by 2. Two different chars (like 'a'=97 and 'b'=98) could map to same number after mod. | Always use a bijective (one-to-one) rule. Addition/subtraction works perfectly. | | Returning a string instead of list | The prompt explicitly asks for a . | Use encoded_list.append(...) and return the list. | 8.3 8 create your own encoding codehs answers
Finally, you'll likely need a simple user interface. The autograder for this exercise usually expects you to repeatedly ask the user to either: ) required to uniquely represent your desired character set
This guide provides a comprehensive breakdown and solution for the activity. In this assignment, you are tasked with creating a custom binary encoding scheme, moving beyond standard ASCII to understand how computers represent data. What is the 8.3.8 Create Your Own Encoding Challenge? Your decode must reverse correctly
Use the needed to represent all characters.
: These built-in functions convert between characters and their ASCII values. They allow us to generate a to z without typing each letter.
If your table requires a specific number of bits, ensure all your entries match that length.