Python setattr() Python setattr() function is used to assign a new value to the attribute of an object/instance . Setattr in python sets a new specified value argument to the specified attribute name of a class/function’s defined object.
What is Setattr () used for?
Python setattr() Python setattr() function is used to assign a new value to the attribute of an object/instance . Setattr in python sets a new specified value argument to the specified attribute name of a class/function’s defined object.