[Solved] Python ValueError: chr() arg not in range(0x110000)
There’s a couple of tweaks I had to make to get your code to work, here’s a working version: import enchant message_decrypt= input(“Enter the message you want to decrypt: “) key= 0 def caesar_hack(message_decrypt,key): final_message=”” d= enchant.Dict(“en.US”) f= d.check(message_decrypt) while f== False: for characters in message_decrypt: if ord(characters)<=90: if ord(characters)-key<ord(“A”): final_message= final_message+ chr(ord(characters)-key+26) # The … Read more