I am trying to run python application and execute actions based on specified interval. Below code is consuming constantly 100% of …