I've got an list of objects in Python, and they each have an id property. I want to get a list of those IDs.
id
In C# I'd write
myObjects.Select(obj => obj.id);
How would I do this in Python?
[obj.id for obj in myObjects]