How can I use python to check if a object in my list already contains the same name?
- Class Object Team
- attribute: name
I have a list which contains multiple 'Teams'
pseudo code
teams = [Team name="Dolphins", Team name="Browns", Team name="Ravens"]
How can i test if the team 'Browns' already exists? Is it just a simple for-loop going item by item, or does python have some shortcode to do this?