Run ❯
Get your
own Python
server
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
class Person: name = "John" age = 36 country = "Norway" setattr(Person, 'age', 40) # The age property will now have the value: 40 x = getattr(Person, 'age') print(x)
40