Solution: ROT13



examples/files/rot13_file.py
import sys
import codecs


def rot13(text):
    text_in_rot_13 = ''
    # Do something with text to become  rot13

    return text_in_rot_13


if len(sys.argv) != 2:
    exit(f"Usage: {sys.argv[0]} FILENAME")

filename = sys.argv[1]
with open(filename, 'r') as fh:
    original = fh.read()

encoded = codecs.encode(original, encoding='rot_13')
#print(encoded)

with open(filename, 'w') as fh:
    fh.write(encoded)