Can create or get the attribute of python object.

Getting Attribute

class Person:
  name = "John"
  age = 36
  country = "Norway"
 
x = getattr(Person, 'age') # will be 36

Creating Attribute

class Person:
  name = "John"
  age = 36
  country = "Norway"
 
x = getattr(Person, 'page', 'my message')
 
print(x) # will be 'my message'