Posted on:

20 Nov 2022

0

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)

Submit an answer