From 188855e5d2524fd21d038d1bdfe147b5b9901073 Mon Sep 17 00:00:00 2001 From: luc Date: Thu, 10 Sep 2026 15:30:25 +0200 Subject: [PATCH] simulation.py: add --- simulation.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 simulation.py diff --git a/simulation.py b/simulation.py new file mode 100644 index 0000000..542b501 --- /dev/null +++ b/simulation.py @@ -0,0 +1,10 @@ +# a funny python file + +# Simulation of a falling body on Earth +ACCELERATION_G = 10 # m/s^2 +TIME = 5.0 # seconds + +def calculate_displacement(g, t): +return 0.5 * g * (t ** 2) + +print(f"Displacement after {TIME}s: {calculate_displacement(ACCELERATION_G,TIME)} meters")