python logger printing multiple times

Solutions on MaxInterview for python logger printing multiple times by the best coders in the world