The position of an automobile as a function of time is plotted in the Figugere below. 0 s.

a) What is the average velocity for 0<t<2.0 s? For 2.0<t<4.0 s?
b) Estimate the instantaneous velocity at t=1.0 s and at t=3.
$t_1 = 2s$
$t_2 = 2s$
$\Delta s_1 = 0m-25m=25m$
$\Delta s_2 = 40m-25m=20m$
import numpy as np
t_1 = 2
t_2 = 2
d_s_1 = 25
d_s_2 = 20
v_1 = d_s_1 / t_1
v_2 = d_s_2 / t_2
print(f'a) The car\'average velocity in part 1 is: {v_1:.2f} m/s and in part 2 is {v_2:.2f} m/s')
print('b) The estimated instantaneous velocity at t=1s has aproximatly the same slope as the second part so 10 m/s')