PyInquirer Question 01-29-2020, 04:32 AM
#1
I am still fairly new to python but I have always learned programming easier with a hands on approach by coding but I am stumped at the moment. How do I go about pulling the single value from the input list of PyInquirer. How do I go about storing the value of first_name into a variable. Probably a newb question but hey here to learn Example Code:
Code:
QUESTIONS = [
{
'type': 'input',
'name': 'first_name',
'message': 'Question?',
},
{
'type': 'confirm',
'message': 'Answer Confirm?',
'name': 'continue',
'default': True,
},
{
'type': 'input',
'name': 'last_name',
'message': 'Question?',
},
]
ANSWERS = prompt(QUESTIONS, style=STYLE)
pprint(ANSWERS)
“I am thankful for all of those who said NO to me. It’s because of them I’m doing it myself.” – Albert Einstein


![[+]](https://sinister.li/images/modern/collapse_collapsed.png)