#!/usr/bin/python

from words import *


def delete_words():
    repo = WordRepository()

    while True:
        reply = unicode(raw_input('\nWord to delete> '), 'utf8')

        if reply:
            deleted = repo.delete_word(reply)

            if deleted:
                print reply.encode('utf8'), 'deleted.'
            else:
                print reply.encode('utf8'), ' does not exist.'
        else:
            print 'Goodbye!'
            break


if __name__ == '__main__':
    delete_words()

85307e597479a813f711aa91358b7f95e90022b9
#!/usr/bin/python

from words import *


def delete_words():
    repo = WordRepository()

    while True:
        reply = unicode(raw_input('\nWord to delete> '), 'utf8')

        if reply:
            deleted = repo.delete_word(reply)

            if deleted:
                print reply.encode('utf8'), 'deleted.'
            else:
                print reply.encode('utf8'), ' does not exist.'
        else:
            print 'Goodbye!'
            break


if __name__ == '__main__':
    delete_words()
