if char.isupper(): result += alphabet[new_index].upper() else: result += alphabet[new_index] else: result += char
When a user queries "Getintopc best," they are usually looking for a version that balances with usability . caesar 2 getintopc best
decrypted = caesar_cipher(encrypted, shift, 'decrypt') print(f"Decrypted: decrypted") if char