What is setattr() used for?
Answers
Answered by
0
Answer:
here is your answer check it follow me guys and mark as brainlist answer and thank to my answer
Explanation:
setattr() is used to assign the object attribute its value. Apart from ways to assign values to class variables, through constructors and object functions, this method gives you an alternative way to assign value.
Similar questions