Botanically, pumpkins are fruits because they develop from the flower's ovary and contain seeds, which is the definition of a fruit. Vegetables are other plant parts like roots, stems, and leaves. While pumpkins are treated as vegetables in culinary contexts, scientifically they are not vegetables.