<human>:  know if an object has an attribute
<bot>: Here is some code to get the value of attribute 'property' of object `a` with default value 'default value'

getattr(a, 'property', 'default value')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.