[Python] Getting a list of values from a list of dicts

Discussão em 'Python' iniciado por Stack, Junho 21, 2025.

  1. Stack

    Stack Membro Participativo

    I have a list of dicts like this:

    [{'value': 'apple', 'blah': 2},
    {'value': 'banana', 'blah': 3} ,
    {'value': 'cars', 'blah': 4}]


    I want ['apple', 'banana', 'cars']

    Whats the best way to do this?

    Continue reading...

Compartilhe esta Página