5 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
6 <style type=
"text/css">
11 <textarea id=
"source">
17 * Letter-by-letter enciphering
21 # The [string module](http://docs.python.org/
3.3/library/string.html) is your friend
26 string.ascii_lowercase
27 string.ascii_uppercase
41 # The magic doctest incantation
44 if __name__ ==
"__main__":
51 # Doing all the letters
57 for i in range(len(plaintext)):
58 ciphertext += caesar_encipher_letter(plaintext[i], key)
63 # Doing all the letters
70 ciphertext += caesar_encipher_letter(p, key)
75 # Doing all the letters
77 ## Good (but unPythonic)
80 ciphertext = map(lambda p: caesar_encipher_letter(p, key), plaintext)
85 # Doing all the letters
90 ciphertext = [caesar_encipher_letter(p, key) for p in plaintext]
95 <script src=
"http://gnab.github.io/remark/downloads/remark-0.6.0.min.js" type=
"text/javascript">
97 <script type=
"text/javascript">
98 var slideshow = remark.create();