Python -Attribute aus String
class Car :
color = "red"
# initializing object
my_car = Car()
# use of getattr
print(getattr(my_car,"color"))
Healthy Hawk
class Car :
color = "red"
# initializing object
my_car = Car()
# use of getattr
print(getattr(my_car,"color"))