Atribut Python dari String

class Car : 
    color = "red"

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