In the process of heating gas molecules, an initial increase in internal pressure occurs, leading to the expansion of the flexible container as its sides are pushed outward. This expansion persists until pressure equalization is attained. Is this sequence of events a result of the interplay between temperature-induced pressure changes and the flexibility of the container?