►
Run
class A: name = 'Apple' age = 25 result = getattr(A, 'name') print(result)
Output