Reverse translation dictionary Python
<p>This is what I have ended up with after suggestions were made it appears as if the Eng dictionary is identical to the Tuc one. This program will translate English words to Tuccin but I can not for the life of me get it to translate Tuccin to English Pleae tell me how to achieve this. In the event a non stored word is input I have it set to just print the word itself. But i don't even manage to get the elif to trigger it goes straight to the else condition if it's not a stored English word.    </p>

<pre><code>Tuc={"i":["o"],"love":["wau"],"you":["uo"],"me":["ye"],"my":["yem"],"mine":["yeme"],"are":["sia"]}
Eng = {t: e for t, e in Tuc.items()}
print "ENG"
print Eng
print "TUC"
print Tuc
phrase=True
reverseLookup = False  

while phrase == True:
    translation = str(raw_input("Enter content for translation.\n").lower())
    input_list = translation.split()


    for word in input_list:

        #English to Tuccin
        if word in Tuc:
            print ("".join(Tuc[word]))+" *English&gt;&gt;Tuccin"

       #Tuccin to English
        elif word in Eng:
            print ("".join(Eng[word]))+" *Tuccin&gt;&gt;English"

        else:
            print word+" *Word Not Stored"
</code></pre>

<p>This version assumes each word will have multiple translations (that's the reason you're using lists on each word):</p>

<pre><code>from collections import defaultdict

tuc_dictionary = {
    "i": ["o"],
    "love": ["wau"],
    "you": ["uo"],
    "me": ["ye"],
    "my": ["yem"],
    "mine": ["yeme"],
    "are": ["sia"]
}
english_dictionary = defaultdict(list)
for k, v in tuc_dictionary.items():
    for word in v:
        english_dictionary[word].append(k)
english_dictionary = dict(english_dictionary)

print "ENG"
print english_dictionary
print "TUC"
print tuc_dictionary
phrase = True
reverseLookup = False

while phrase == True:
    translation = str(raw_input("Enter content for translation.\n").lower())
    input_list = translation.split()

    for word in input_list:

        # English to Tuccin
        if word in tuc_dictionary:
            print("".join(tuc_dictionary[word])) + " *English&gt;&gt;Tuccin"

        # Tuccin to English
        elif word in english_dictionary:
            print("".join(english_dictionary[word])) + " *Tuccin&gt;&gt;English"
        else:
            print word + " *Word Not Stored"
</code></pre>

python dictionary translation