Attributs Python de la chaîne

class Car : 
    color = "red"

# initializing object 
my_car = Car() 
  
# use of getattr 
print(getattr(my_car,"color"))
Healthy Hawk