class Bean: def __init__(self, cool): self.cool = cool def we_cool(beans): for bean in beans: if not bean.cool: print 'Not cool.' return False print 'We cool.' return True beans = [Bean(True), Bean(False)] we_cool(beans) beans[1].cool = True we_cool(beans)