text_question.py 192 B

1234567891011121314
  1. from PyInquirer import prompt
  2. widget = [
  3. {
  4. 'type':'input',
  5. 'name':'myVar',
  6. 'message':'Your data please :'
  7. }
  8. ]
  9. result = prompt(widget)
  10. print('Your answer is')
  11. print(result["myVar"])