list_question_number.py 242 B

123456789101112131415
  1. from PyInquirer import prompt
  2. widget = [
  3. {
  4. 'type':'rawlist',
  5. 'name':'lang',
  6. 'message':'Choose your language :',
  7. 'choices':['Francais','English','Deutsch']
  8. }
  9. ]
  10. result = prompt(widget)
  11. print('Your answer is')
  12. print(result["lang"])