Suppose I have a python object x and a string s, how do I set the attribute s on x? So:
x
s
>>> x =
let x be an object then you can do it two ways
x.attr_name = s setattr(x, 'attr_name', s)