Showing posts with label setattr() function in Python. Show all posts
Showing posts with label setattr() function in Python. Show all posts

Saturday, November 14, 2020

, ,

Example program for setattr() function in Python

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...