Skip to content

Instantly share code, notes, and snippets.

@EvanMisshula
Created June 9, 2025 12:21
Show Gist options
  • Save EvanMisshula/db48334f428216cbb8f1c7732a51a8e3 to your computer and use it in GitHub Desktop.
Save EvanMisshula/db48334f428216cbb8f1c7732a51a8e3 to your computer and use it in GitHub Desktop.
breakout instruction answer decode

TA Instructions: Viewing the Answer Key for the Wine EDA Exercise The student-facing answer key has been scrambled using a reversible encoding (ROT13). Here's how you, as a TA, can decode and read it. :mag_right: Step-by-Step

  1. Locate the scrambled file Navigate to the following path in your project directory: breakout/wine_eda_answer_key.md
  2. Open a Python shell or script Use any of the following: A Jupyter notebook cell The Python REPL (python3 in your terminal) A .py script file
  3. Decode using codecs and rot_13 Run this code to read and decode the answer key: import codecs

Path to the scrambled file

with open("breakout/wine_eda_answer_key.md", "r") as f: scrambled_text = f.read()

Decode the contents

decoded_text = codecs.decode(scrambled_text, 'rot_13')

Print or optionally write to a new file

print(decoded_text)

Optional: save to a decoded file

with open("breakout/wine_eda_answer_key_decoded.md", "w") as out: out.write(decoded_text) :brain: What is ROT13? ROT13 is a Caesar cipher that shifts letters by 13 places. It’s symmetric, so decoding is simply re-applying the same transformation. Let me know if you want this instruction set packaged as a .pdf, .md, or included in your course materials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment