The sample script:
import os
import sys
from pprint import pprint
import yaml
sys.path.append(os.path.realpath("."))
import inquirer # noqa
questions = [
inquirer.Checkbox(
"interests",
message="What are you interested in?",
choices=["Computers", "Books", "Science", "Nature", "Fantasy", "History"],
default=["Computers", "Books"],
),
]
answers = inquirer.prompt(questions)
pprint(answers)
print(yaml.dump(answers))
produces:
[?] What are you interested in?:
X Computers
o Books
How do I change "X" and "o" to "Y" and "N" respectively?
PS: It's pretty common knowledge that XOXO means "hugs and kisses", so it may not be appropriate in some working environments.