I'm brand new to Python, and I was wondering if someone could help me with something that seems to be a simple fix. However, I can't figure it out.
When I copy and paste the following code from my text editor to my terminal, I get an error saying:
IndentationError: unexpected indent
When I manually type in everything in Terminal, I don't get the error message and the program runs perfectly fine.
def decrypt(key, txtFile): \
txtFile = encrypted.upper() \
alpha = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \
result = "" \
for char in txtFile: \
if char in alpha: \
char_index = (alpha.find(char) - key) % len(alpha) \
result = result + alpha[char_index] \
else: \
result = result + char \
return result
'''