
setattr() function in Python use to set the value of an attribute.setattr() function in Python Syntax : -
setattr(object, name, value)
If you want to read the object then use the getattr() function.Parameters For setattr():- It takes three parameters and these are:-Object : - the object...