In botany, the zucchini's fruit is a pepo, a berry (the swollen ovary of the zucchini flower) with a hardened epicarp. In cookery, it is treated as a vegetable, usually cooked and eaten as an accompaniment or savory dish, though occasionally used in sweeter cooking.