Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Much of the work of enciphering and deciphering is algorithmic: the same predictable steps, done over and over. Tasks like these are perfect for a computer. Instead of working through them with pencil and paper, we’ll write instructions in Python and let the computer carry them out.

To begin, let’s get the basics of Python under our belt. Like a spoken language, Python has grammar rules, and instructions must follow them exactly for the computer to make sense of them. These rules are called the syntax of the language. People can usually understand a sentence with a grammar mistake in it. Computers can’t. The syntax must be exactly right for the computer to understand the task you’ve asked it to do.

In This Section