need help with python dictionary

I am new to python. I am creating a dictionary for netlingo or IM talk and so far it works but I need the program to return the original word in its place when the entry does not exist. For Example if some one puts in “omg” the program will return “omg in netlingo is oh my god” But if some one puts in “they are ovr8d” the program will say “Not In This Dictionary”, because “they are” is not in the dictionary. “ovr8d” however is in the dictionary. I want the program to return “they are ovr8d in netlingo is they are overated”. Any help is appreciated.

This is just the main() part of the code.

def main():

    dct = loadFile('netlingo.txt')

    word = raw_input('What would you like traslated? ("quit" to quit): ')

    while word.lower() != 'quit':

        if word.lower() in dct:
            print word , ' in netlingo is ' , dct[word.lower()]
        else:
            print "Not In This Dictionary. "
           

        word = raw_input('Would you like something else translated?')
        

Something like this, perhaps?


def main():

    dct = loadFile('netlingo.txt')
    word = raw_input('What would you like traslated? ("quit" to quit): ')
    while word.lower() != 'quit':
        found = False
        for pick in word.split(' '):
            if pick.lower() in dct:
                print word , ' in netlingo is ' , dct[word.lower()]
                found = True
        if not found:
            print word, "is Not In This Dictionary. "
        word = raw_input('Would you like something else translated?')

Thanks it worked. But I had to replace the word “pick” with word and the line that says “if not found:” with else: and it works perfect. Thank you very much.