This is my own answer
message = "Osama Mohamed"
shift = 3
def encoder(message, shift):
en = ""
for i in message:
if i !=" ":
en += chr(((ord(i) + shift) % 64) + 64)
else:
en+=" "
return en
print(encoder(message,shift))
0 answers ( 0 marked as helpful)