What is the meaning of [Buy a lemon]

To buy a lemon means to buy something (usually a motor vehicle) that doesn’t work well and is therefore worthless. “The car looked so new and shiny I had no way of knowing I was buying a lemon.”