A computer simulation is a computer model that recreates a real-world system over time. Simulations are often used for training purposes when recreating situations in real life would be too difficult, expensive, or dangerous. A key example is a flight simulator, which uses software to simulate the aircraft, environment, and instrument readings and allows pilots to practice responding to dangerous situations safely.