Why pumpkins at Halloween?

Why pumpkins at Halloween? Originally, people made jack-o’-lanterns at Halloween out of turnips but pumpkins were found to be larger and easier to carve.