Chiffre Cesar Python
def chiffre_cesar(str):
return ''.join([chr(ord('A')+3+(ord(i.upper())-ord('A')) % 26 - 26 ) for i in str ])
Mouad En-naciry
def chiffre_cesar(str):
return ''.join([chr(ord('A')+3+(ord(i.upper())-ord('A')) % 26 - 26 ) for i in str ])