Dictionaries are designed for key-value pairs , allowing you to look up a letter (the key) and instantly retrieve its encoded symbol (the value). Lists or Tuples would require you to loop through every item just to find one match, which is much slower. If you'd like, I can help you: Debug a specific error message you're getting. Show you how to write the decoding function (the reverse).
Assign a unique binary value (zeros and ones) to every character in your set. Step 1: Determine the Bit Count 8.3 8 create your own encoding codehs answers
Use the needed to represent all characters. Dictionaries are designed for key-value pairs , allowing