Build fresh dictionaries inside functions or pass them as parameters.
This lesson asks students to design an encoding scheme to convert text into numeric (or other) representations and provide the corresponding decoding process. Below are sample answers and explanations covering multiple reasonable encoding approaches, sample encodings for the phrase "HELLO" and for a longer example, plus pseudocode for encoding and decoding.
You can create your scheme by assigning binary keys to character values. A simple approach is to use sequential binary numbers for the alphabet: : 00000 B : 00001 C : 00010 Z : 11001 Space : 11010 Implementation Tips
This guide breaks down the core concepts behind the assignment, walks through an optimal Python solution, and explores how data transformation functions in the real world. Understanding CodeHS 8.3.8: The Objective 8.3 8 create your own encoding codehs answers
The core of the CodeHS 8.3.8 "Create Your Own Encoding" exercise is to build a simple or Substitution Map .
: A common strategy is to assign values sequentially starting from Sample Encoding Table (5-Bit Scheme) Binary Code Binary Code Step-by-Step Implementation Guide Define Your Bit Length Set your encoding to use
Master CodeHS 8.3.8: Create Your Own Encoding Encoding algorithms form the backbone of modern data security and computer science. In the CodeHS "Create Your Own Encoding" exercise, you move beyond basic substitution ciphers to build a custom text encryption system using Python. Build fresh dictionaries inside functions or pass them
The most common mistake is having a mismatch between the mapping used for encoding and the mapping used for decoding. Always derive the decoding mapping directly from the encoding mapping, as shown in the sample code.
While CodeHS allows for creativity, most students find success using one of two classic methods:
: You should use the fewest number of bits necessary to represent all your characters. For a character set of 27 items (A-Z plus space), this requires at least 5 bits ( possible combinations). You can create your scheme by assigning binary
If the character matches your "secret code" criteria, add the replacement to your result.
A simpler approach involves targeting specific characters. You can swap out all vowels ( a, e, i, o, u ) with special symbols like *, $, #, @, % . Step-by-Step Code Implementation
| 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 |
This method replaces letters with their corresponding ASCII values or alphabet indices. For instance, the letter 'A' might be encoded as 65 or 1 . 3. Vowel Replacement


The Next Gen RN project is a spinoff project of the Open RN project that was funded by a $500,000 WTCS Core Industry grant. The goal of the project is to improve the preparedness of pre-licensure nursing students entering the workforce by providing the opportunity to practice completing NCLEX Next Generation (NGN) style case studies as formative assessments.
NGN questions were launched on the NCLEX in April 2023 in an effort to more accurately assess nursing graduates’ clinical judgment.
LibreTexts’ ADAPT software platform was customized for nursing faculty to create NGN-style case studies and questions and share them publicly with other faculty. Over 25 NGN-style case studies are shared in the “Next Gen RN” public course in ADAPT that serves as a repository.
Nursing instructors can request a personal ADAPT account to view these questions by going to LibreTexts ADAPT platform and clicking on “Support.” Resources for using ADAPT are located online at the Next Gen RN Nursing Tutorial.
In addition to NGN case studies available to faculty within the ADAPT platform, individual NGN questions are also linked within the Open RN OER textbooks as formative assessments with immediate feedback provided to students.
The ARISE project is a legacy project that created over 150 high-fidelity simulation plans and serious games with augmented reality images, videos, and sounds that were accessed using a QR code, an iPad, and the open-source Aris app.
Although the ARISE app is no longer supported by its original creator, the ARISE simulation plans can be adapted for use in high-fidelity and low-fidelity simulations. They can be accessed using the following button.
