So I am trying to write a program to use a cypher to code a textfile. There is a textfile holding the cypher, and the program is supposed to ask the user which file they want encoded. This is my program so far
Code:
#program
textfile = input("What is the name of the file that holds a cypher?")
code = {}
for line in textfile:
(char, shadow_char) = line.split()
code[char]= shadow_char