8.3 8 Create Your Own Encoding Codehs Answers -

Ensure that if you shift 'Z', it goes back to 'A' rather than turning into a symbol. 3. Writing the decode Function

def encode(text): result = "" for character in text: # Get the ASCII value of the character ascii_value = ord(character) # Add 1 to the ASCII value new_value = ascii_value + 1 # Convert the new value back to a character new_char = chr(new_value) # Add the new character to our result string result += new_char return result 8.3 8 create your own encoding codehs answers

: Make sure your code handles spaces! If a character isn't in your map (like a space or a period), just add it to the result string as-is. Ensure that if you shift 'Z', it goes

Include mappings for and a space character. If a character isn't in your map (like

To pass the CodeHS autograder for this exercise, your encoding scheme must typically meet several criteria: