I am adding car function entry to the class but it is not working.
    class car():
      def __init__(self,speed,engine,color):
         self.speed = speed
         #ı add speed
         self.engine = engine
         #ı add engine
         self.color = color
         #ı add color
         print("new car add")
    car1 = car(233,23,"red")
    car2 = car(300,59,"yellow")
    car3 = car(32,23,"blue")
    a = int(input("car number: "))
    b = str(input("type : speed , engine , color: ")) 
    a = str(a)
    #make car + a
    #maybe here is broken
    no = "car" + a
    nu = no + "." + b
    print(nu)
How do I get the color of car #1 when a == 1 and b == "color"?
 
     
     
    