VsichkiFilmi

Гледай филми онлайн

8.3 8 Create Your Own Encoding Codehs Answers ❲Cross-Platform SECURE❳

alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ " def encode_custom(msg): return [alphabet.index(ch.upper()) for ch in msg if ch in alphabet]

: 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). 8.3 8 create your own encoding codehs answers

In this exercise, you aren't just writing a program; you are inventing a . Your task is to: you aren't just writing a program

Loop through each character in the message, look it up in your encoding dictionary, and build a new string. and build a new string.