Help me understand encryption | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Help me understand encryption

Can someone help me understand the caesar encryption? I know what it does but can you explain how you would type it out?

29th Dec 2016, 1:33 AM
Bethany Pemberton
Bethany Pemberton - avatar
1 Réponse
+ 3
Phyton got the 'ord' and 'chr' command. So you can change your own increment, using the string as array, while looping thought it. >>> ord('c') 99 >>> ord('c') + 1 100 >>> chr(ord('c') + 1) 'd' >>>
29th Dec 2016, 1:55 AM
Nahuel
Nahuel - avatar