Hsattr ():
the hasattr () function for determining whether the object contains the corresponding property.
grammar:
hasattr(object, name)
parameter:
object - the object.
name - a string property name
If the object has the property returns True, otherwise False.