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