pumpkins contain higher levels of vitamin a, vitamins b1, b5, b6, and vitamin k, while sweet potatoes are richer in vitamin c, vitamin e, vitamins b2 and b9. sweet potatoes are higher in most minerals. at the same time, pumpkins are richer in iron and lower in sodium.