Python, encryption
alpha = 'abcdefghijklmnopqrstuvwxyz ' output = " " input_mode = "" while input_mode != 0: input_mode = input(" [e]ncrypt or [d]ecrypt: ") if input_mode == 'e': word = input(" Enter a lowercase word: ") for letters in word: indexed = alpha.find(letters) output += alpha[25-indexed] print(output) elif input_mode == 'd': word = input(" Enter a decryption: ") for letters in word: indexed = alpha.find(letters) output += alpha[25+indexed] output += alpha[indexed] print(output) else: input_mode != 'e' or input_mode != 'd' print(" Try again . . . ") Why does this not work with decryption I want it to go from -25 to 25? Why does it now work?