i'm trying to make a translator (i'm not sure that's called translator) that changes every letter to it's equivalent in it's alternative version(for example a=o). i wrote something but it's not working.
Alp1 = "abcdefghıjklmnoprstuvyzxqwABCDEFGHIJKLMNOPRSTUVYZXQW"
Alp2 = "ozskadcmufvhpnebtgyijrlxwqOZSKADCMUFVHPNEBTGYİJRLXWQ"
def variable(word,Num1=0, Num2=0,):
while Num2 != len(word) + 1:
Num1 = 0
Num2 += 1
while word[Num2] != Alp1[Num1]:
Num1 += 1
word[Num2] = Alp2[Num1]
return word
print(variable(input("enter the word:")))what do i do?
