Hacking Secret Ciphers with Python

(Ann) #1
Chapter 4 – Strings and Writing Programs 53

Summary


Writing programs is just about knowing how to speak the computer’s language. While you
learned a little bit of this in the last chapter, in this chapter you’ve put together several Python
instructions to make a complete program that asks for the user’s name and then greets them.


All of our programs later in this book will be more complex and sophisticated, but don’t worry.
The programs will all be explained line by line. And you can always enter instructions into the
interactive shell to see what they do before they are all put into a complete program.


Now let’s start with our first encryption program: the reverse cipher.

Free download pdf