PyInquirer
PyInquirer copied to clipboard
Question based on previous answer
This maybe is kind of the same question as #22
I would like to have like
questions = [
{
'type': 'list',
'name': 'project',
'message': 'QUESTION A',
'choices': ['A', 'B', 'C']
},
{
'type': 'input',
'name': 'ask',
'message': 'Why did you choose {}?'.format(AnswerToTheFirstQuestion)
},
]
answers = prompt(questions, style=style)
Is there any function I can use to get the value of the previous question?
Thank you!
See my workaround https://github.com/CITGuru/PyInquirer/issues/49#issuecomment-487054916, it doesn't help for #22 unfortunately.