import simplematch


def main():
    pattern = input("Enter a pattern (or 'q' to quit):\n")
    if pattern != 'q':
        word = input("Enter a word:\n")
        if (simplematch.match(pattern, word)):
            print("It's a match.")
        else:
            print("They don't match.")
        main()


if __name__ == '__main__':
    main()

import simplematch


def main():
    pattern = input("Enter a pattern (or 'q' to quit):\n")
    if pattern != 'q':
        word = input("Enter a word:\n")
        if (simplematch.match(pattern, word)):
            print("It's a match.")
        else:
            print("They don't match.")
        main()


if __name__ == '__main__':
    main()
