physics problem with python

This exercise consist in doing one physics exercise of selectivity using python:

Come on try it: