def select_editor():
    '''Open the file with either the Vim or Emacs editor.'''
    editor = raw_input("Select an number:\n\n1 for Vim.\n2 for Emacs.\n")
    if editor == "1" or editor == "2":
        if editor == "1":
            os.system("vim +12 " + title)
            exit()
        elif editor == "2":
            os.system("emacs +12 " + title)
            exit()
    else:
        os.system("clear")
        print "\nI do not understand your answer.\n"
        print "Press <Ctrl + C> to quit.\n"
        return select_editor()
Open the file with either the Vim or Emacs editor.
recipes/Python/577846_Pythscript_create_header/recipe-577846.py