Guys i have this new code
Why i can't see the letters, if think it's again chr in line 5
Guys i have this new code Why i can't see the letters, if think it's again chr in line 5
Why i can't see the letters, if think it's again chr in line 5
[/Msg ="MATHS" def num (caractere): return ord (caractere)-65 def lettre (n): return chr(r) 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 print(r , end=" | " ) for c in Msg: print(lettre(r), end= " | " )
Guys i have this new code Why i can't see the letters, if think it's again chr in line 5
[/Msg ="MATHS" def num (caractere): return ord (caractere)-65 def lettre (n): return chr(r) 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 print(r , end=" | " ) for c in Msg: print(lettre(r), end= " | " )