1234567891011121314151617 |
- from PyInquirer import prompt, Separator
- widget = [
- {
- 'type':'list',
- 'name':'lang',
- 'message':'Choose your level :',
- 'choices':['Easy','Medium','Hard',
- Separator('<For pro gamers only>'),
- 'Harder', 'Harderest', 'Relentless', 'Absurd']
- }
- ]
- result = prompt(widget)
- print('Your answer is')
- print(result["lang"])
|