Skip to Main Content
Impractical Python Projects
book

Impractical Python Projects

by Lee Vaughan
November 2018
Beginner content levelBeginner
424 pages
11h 43m
English
No Starch Press
Content preview from Impractical Python Projects

2FINDING PALINGRAM SPELLS

image

Radar. Kayak. Rotator. Sexes. What do these words all have in common? They’re palindromes, words that are spelled the same forward and backward. Even better are palingrams, whole phrases that behave the same way. Napoleon is the author of the most famous palingram. When he first saw Elba, the island of his exile, he said, “Able was I ere I saw Elba.”

In 2011, DC Comics published an interesting story that made clever use of palingrams. The superhero sorceress Zatanna was cursed so that she could cast spells only by speaking palindromically. She managed to think up just enough two-word phrases like nurses run, stack cats ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Tiny Python Projects

Tiny Python Projects

Ken Youens-Clark

Publisher Resources

ISBN: 9781492069454