dinosaurs went extinct about 66 million years ago.which period of geologic time was the last in which dinosaurs lived

https://www.preceden.com/timelines/63253-history-of-earth-timeline

Except in the movies

To determine the period of geologic time in which dinosaurs last lived, we need to understand the geologic time scale. The geologic time scale is a system that divides the Earth's history into different periods, epochs, and stages, based on significant events and the presence or absence of particular groups of organisms.

The last period in which dinosaurs lived is called the Cretaceous period, which lasted from about 145 to 66 million years ago. The Cretaceous was the third and final period of the Mesozoic Era, also known as the Age of Reptiles. It followed the Jurassic period and was succeeded by the Paleogene period, which marks the beginning of the Cenozoic Era.

The end of the Cretaceous period is marked by a catastrophic event known as the Cretaceous-Paleogene extinction event, which occurred approximately 66 million years ago. This event resulted in the extinction of not only dinosaurs but also many other species, including most marine reptiles, pterosaurs, and ammonites.

Therefore, to answer your question, the last period in which dinosaurs lived was the Cretaceous period, which ended about 66 million years ago.