This paper presents a numerical simulation study of subsonic and supersonic nozzle flow regimes utilizing the Small Disturbance Equation (SDE), implemented through Python to analyze flow stability under various boundary conditions. The SDE, extensively applied in aerospace, meteorology, and fluid mechanics, offers a critical framework for examining aircraft stability and maneuverability, essential for ensuring flight safety. Additionally, its application extends to spacecraft stability and control in aerospace science. The findings from this study reveal that subsonic flows, characterized by their stability and smoothness, respond more predictably under varying boundary conditions compared to their supersonic counterparts. Conversely, supersonic flows demonstrate increased sensitivity to changes in boundary conditions, resulting in more complex flow patterns. This sensitivity underscores the need for precise control mechanisms in supersonic applications to maintain flow stability and ensure the safety and efficiency of aerospace operations. The simulations underscore the practical importance of the SDE in advancing the understanding of dynamic flow problems across different scientific and engineering disciplines.