So in the beginning i use :
And what should i do for "chr" and "n" ?
So now i found not the letters i want, what should i do ?
r= (A*(ord(c)-65)+ B)%26 print(r , end=" | " )After I have the string bug
And what should i do for "chr" and "n" ?
So now i found not the letters i want, what should i do ?
Msg ="MATHS" def num (caractere): return ord (caractere)-65 def lettre (n): return chr('65') + 'n' for c in Msg : print (c,end="|") print() for c in Msg : print(num(c), end=" | ") print ('\n\n', 'le message est sous forme de chiffres') for c in Msg: print ( '\n\n','Maintenant veuillez entrer deux chiffres pour créer votre cles ') # Finir Cle print ('\n\n', 'soit la fonction affine a*x + b qui va vous permettre de créer votre cles ') A = 11 B = 7 for c in Msg: r= (A*(ord(c)-65)+ B)%26 + 65 print(lettre(r),end=" | ")