I've been trying how to decode my encryption from "kl" to "a", or "klfg" to "ab"
I have tried str.find(), str.replace() and many other options, but I couldn't get any good result
My code:
print ("Welcome")
message = input("Entry text")
encoded= ""
for char in message:
if char== "a" or char == "A":
encoded += "kl"
elif char== "b" or char == "B":
encoded += "fg"
elif char== "z" or char == "Z":
encoded += "wt"
print (encoded)