To check if a variable is in a list, I know that one can use if variable in list. In my instance, I have a list of objects, all of which have the attribute "id", I want to check if an object in a list has a specific ID, but I'm not sure how I would go about doing that.
I already tried looking this up on google as well as here but I couldn't find any relevant results. That might be because I don't really know how to phrase my question correctly, so if my question doesn't make sense let me know and I'll try to explain it better.
