DRAE or Oxford? Mine (‘Dictionaries’ for those who didn’t get it)

--Originally published at Nihilistic Kirby

For this project I wanted to make something a little bit different as I got inspired with cryptology, as some people may know I kinda know Japanese, and I wanted to create a “translator” for the vowels A I U E O  respectively in:

ア イ ウ エ オ 

My dictionary for katakana, in order to write names (difficult but trying to figure out) is just a future project; however, I already have the first step done, which, as I said, is the representation of each vowel in katakana.

vowels = {‘a’,’i’,’u’,’e’,’o’}
katakana_vowels = {‘a’:’ア’,’i’:’イ’,’u’:’ウ’,’e’:’エ’,’o’:’オ’}

def converter(vowel):
return katakana_vowels[vowel]

print(converter(‘e’))

As you can see, the dictionary works with list of values surrounded by “{}”, and divided by  commas. The wonder of this code is that for each value that exists in the list ‘vowels’, there will be another value that will replace that exact value with another one, which is the katakana.

Is not difficult to understand, think it like if it was a tuple, where there are values that cannot be modified , and each one has another one of itself from another universe.