v0 = 5 g = 9.81 n = 10 t_stop = 2 * v0 / g h = t_stop / n #a) Fill the list using a for-loop (recommended): y = [] for i in range(n + 1): t = i * h y.append(v0 * t - 0.5 * g * t**2) print(y) #b) Same operation using a while loop: t = 0 y = [] """When comparing floats, it is safer to use < and a tolerance than using <= """ tol = 1e-8 while t < t_stop + tol: y.append(v0 * t - 0.5 * g * t**2) t = t + h print(y) """ Terminal> python ball_table1.py [0.0, 0.4587155963302752, 0.8154943934760448, 1.070336391437309, 1.2232415902140672, 1.27420998980632, 1.2232415902140674, 1.070336391437309, 0.8154943934760448, 0.4587155963302756, 0.0] [0.0, 0.4587155963302752, 0.8154943934760448, 1.070336391437309, 1.2232415902140672, 1.27420998980632, 1.2232415902140674, 1.070336391437309, 0.8154943934760448, 0.4587155963302756, 0.0] """