from PyInquirer import prompt, Separator widget = [ { 'type':'checkbox', 'name':'parts', 'message':'Choose parts to upgrade', 'choices':[Separator('= Weapons ='), {'name':'Laser'},{'name':'Beam'},{'name':'Shotgun'}, Separator('= Others ='), {'name':'Thruster'}, {'name':'Shield'}, {'name':'MedBay', 'disabled':'Already upgraded'}, {'name':'FTL', 'cheked':True}] } ] result = prompt(widget) print('Your answer is') print(result["parts"])