I am trying to make a dictionary that gets input from the user. My current code is(not finished in a long way)
person = {
"name": str(inp("Enter your name: ")),
"age": int(inp("Enter your age: ")),
"gender": # Help
}
Okay, so I also wrote a small code with inquirer that gives 2 choices:
questions = [
inquirer.List('gender',
message="What gender are you?",
choices=['Male', 'Female'], ),
]
answers = inquirer.prompt(questions)
This gives the user 2 alternatives in the console. Male and Female. But how do I get so my gender code is connected to the "gender" element in person?