“91974˙CH03˙ﬁnal” — 2012/12/14 — 14:15 — page 83 — #1
Codes and Other Secrets
To introduce the string data type
To demonstrate the use of string methods and operators
To introduce simple cryptographic algorithms
For almost as long as people have been writing, people have also been trying to hide
what they were writing from others. Herodotus describes the use of “secret writing” that
saved Greece from being conquered by Xerxes and the Persians. The Kama Sutra, based
on writings dating back to the fourth century bce, instructs women in the art of secret
writing in order to hide the details of their liaisons. ...
Get Python Programming in Context, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.