Created
December 17, 2024 09:50
-
-
Save Robotto/af2710ac01a614727cb74e855c20b8fb to your computer and use it in GitHub Desktop.
læs fra en fil, skriv til en fil.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def kryptoFakeStuff(msg): | |
return msg | |
messages=[] | |
with open("input.txt", "r") as file: | |
for line in file: | |
messages.append(line.strip()) | |
with open("ciphers.txt", "w") as file: | |
for message in messages: | |
#do the thing with the thing | |
cipher=kryptoFakeStuff(message) | |
file.write(cipher+'\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment