5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
6 <style type=
"text/css">
15 h1 { font-size:
4em; }
16 h2 { font-size:
2em; }
17 h3 { font-size:
1.6em; }
19 /* color: rgb(
249,
38,
114); */
20 text-decoration: none;
23 -moz-border-radius:
5px;
24 -web-border-radius:
5px;
32 <textarea id=
"source">
36 ![centre-aligned Caesar wheel](caesarwheel1.gif)
38 * Letter-by-letter enciphering
42 # The [string module](http://docs.python.org/
3.3/library/string.html) is your friend
47 string.ascii_lowercase
48 string.ascii_uppercase
62 # The magic doctest incantation
65 if __name__ ==
"__main__":
72 # Doing all the letters
78 for i in range(len(plaintext)):
79 ciphertext += caesar_encipher_letter(plaintext[i], key)
84 # Doing all the letters
91 ciphertext += caesar_encipher_letter(p, key)
96 # Doing all the letters
98 ## Good (but unPythonic)
101 ciphertext = map(lambda p: caesar_encipher_letter(p, key),
107 # Doing all the letters
112 ciphertext = [caesar_encipher_letter(p, key)
118 <script src=
"http://gnab.github.io/remark/downloads/remark-0.6.0.min.js" type=
"text/javascript">
120 <script type=
"text/javascript">
121 var slideshow = remark.create();