8.3 8 Create Your Own Encoding Codehs Answers - =link=
If you are looking for the logic behind the solution and how to structure your code, this guide will walk you through the process of building a robust encoder and decoder. Understanding the Goal
Every JPEG, MP3, and ZIP file is someone’s answer to “8.3.8” for a specific problem. When you build your own encoding, you’re doing what Claude Shannon did for information theory – deciding how to map real-world symbols into bits. 8.3 8 create your own encoding codehs answers
To pass the CodeHS autograder for this exercise, your encoding scheme must typically meet several criteria: If you are looking for the logic behind
Create your own encoding scheme. Write a function encode that takes a string message and returns an encoded version as a list of integers. Then write a function decode that takes a list of integers and returns the original string. Test your functions by encoding a message, printing the encoded list, decoding it, and printing the result. To pass the CodeHS autograder for this exercise,
Note : This loses case information and only works for letters+space.
Map each character to an arbitrary number: