Sitemap
Data Science Collective

Advice, insights, and ideas from the Medium data science community

Member-only story

QUICK SUCCESS DATA SCIENCE

Solve the Voldemort Anagram with Python and Cryptography

Computer Wizardry at its best!

23 min read1 day ago

--

Press enter or click to view image in full size
The firey words “I Am Lord Voldemort” float over the dark interior of an ancient stone crypt.
The solution to the “Tom Marvolo Riddle” name anagram (by Google Gemini)

An anagram is a word formed by rearranging the letters of another word. For example, Elvis yields the eerie trio evils, lives, and veils. Does this mean Elvis still lives but veils his evil existence?

In the book Harry Potter and the Chamber of Secrets, “I am Lord Voldemort” is an anagram of the evil wizard’s real name, Tom Marvolo Riddle. “Lord Earldom Vomit” is also an anagram of Tom Marvolo Riddle, but author J.K. Rowling had the good sense to pass on that one.

In this Quick Success Data Science project, you’ll first write a Python program to find all anagrams for a given word or name. Then, you’ll write a program that lets a user interactively build an anagram phrase from their own name. Finally, you’ll pretend to be a “computer wizard” and see what it takes to programmatically extract “I am Lord Voldemort” from “Tom Marvolo Riddle.” This will be a challenge, since “Voldemort” is a non-English proper name not found in digital dictionaries.

Solving Anagrams with Python

When I was a boy, there were these things called “newspapers.” And these “newspapers” carried an anagram game called Jumble. Created in…

--

--

Lee Vaughan
Lee Vaughan

Written by Lee Vaughan⁠

Author of “Python Tools for Scientists,” “Impractical Python Projects,” and “Real World Python.” Former Senior Principal Scientist at ExxonMobil.

Data Science Collective
Data Science Collective

Published in Data Science Collective

Advice, insights, and ideas from the Medium data science community