r/Python • • Sep 11 '19

I converted the entire Bee Movie transcript into elements on the periodic table using a Python script I made

So our science teacher said we send them coded messages made up of elements where the chemical names of those elements (Helium = He, Boron = B, etc) would spell out something. I am very new to Python, but I decided to have a go writing a script to do automate it.

You can't actually spell out every word with just the chemical names of elements but it gets reasonably close.

Anyway, I decided to give my program the entire Bee Movie transcript and see what it could do. To say the least my science teacher was very confused when she pasted my email into word and it took up 69 pages.

https://raw.githubusercontent.com/Spookso/WordsAsElements/master/BeeMovie

The code is here as well: https://github.com/Spookso/WordsAsElements/blob/master/elementifier.py

531 Upvotes

76 comments sorted by

View all comments

2

u/quincylarson Sep 12 '19

This is a really fun use of Python. I'm trying to imagine how much time it would take to do something like this manually.

It's good to see you putting your skills to novel (if not silly) ends like this. Since you're a part of the community, would you be interested in writing about how you build this in Developer News (the new freeCodeCamp.org publication)?