Workout #35a: Gemtria Part 1
When you were little, you might have created or used a “secret” code in which a was 1, b was 2, c was 3, and so forth, until z (which was 26). This type of code happens to be quite ancient and was used by a number of different groups more than 2,000 years ago. “Gematria,” (http://mng.bz/B2R8) as it is known in Hebrew, is the way in which biblical verses have long been numbered. And of course, it’s not even worth describing it as a secret code, despite what you might have thought while little.
This exercise, the result of which you’ll use in the next one, asks that you create a dict whose keys are the (lowercase) letters of the English alphabet, and whose values are the numbers ranging from 1 to 26. And yes, you could simply type {‘a’:1, ‘b’:2, ‘c’:3} and so forth, but I’d like you to do this with a dict comprehension.
TRY IT YOURSELF
ANSWER
https://colab.research.google.com/drive/1eVBTaIvw5GfLADKRJ-6D7urgjw8wVSSL?usp=sharing