Python getattr function is a Python built-in function that is used to get the value of a specified attribute from the specified object.