Believe it or not, pumpkins are fruits, not vegetables. In the world of botany, a fruit is the part of a plant that comes from the flower and contains seeds. Since pumpkins develop from a flower and hold seeds inside, they're classified as a type of fruit, specifically a berry known as a pepo.