<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
/* Slideshow styles */
+ body {
+ font-size: 20px;
+ }
+ h1, h2, h3 {
+ font-weight: 400;
+ margin-bottom: 0;
+ }
+ h1 { font-size: 4em; }
+ h2 { font-size: 2em; }
+ h3 { font-size: 1.6em; }
+ a, a > code {
+ /* color: rgb(249, 38, 114); */
+ text-decoration: none;
+ }
+ code {
+ -moz-border-radius: 5px;
+ -web-border-radius: 5px;
+ background: #e7e8e2;
+ border-radius: 5px;
+ font-size: 16px;
+ }
</style>
</head>
<body>
<textarea id="source">
-class: center, middle
-
# Caesar ciphers
+![centre-aligned Caesar wheel](caesarwheel1.gif)
+
* Letter-by-letter enciphering
---
## Good (but unPythonic)
```python
-ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
+ciphertext = map(lambda p: caesar_encipher_letter(p, key),
+ plaintext)
```
---
## Best
```python
-ciphertext = [caesar_encipher_letter(p, key) for p in plaintext]
+ciphertext = [caesar_encipher_letter(p, key)
+ for p in plaintext]
```