Answered step by step
Verified Expert Solution
Question
1 Approved Answer
undefined Create your own division function (my_div) that will divide any two numbers provided. Incorporate a logger into your function and a log file locally
undefined
Create your own division function (my_div) that will divide any two numbers provided. Incorporate a logger into your function and a log file locally created, as follows: Emit a log message with INFO level when the division of two numbers is an integer (exact number). Emit a log message with WARNING level when the division of two numbers is not an integer (rational or irrational number). Emit a log message with ERROR level when the numerator is zero. Emit a log message with CRITICAL level when the denominator is zero (cannot divide by zero!) For anything else, emit a DEBUG level log message. numerator 3. 5 denominator Create your own division function (my_div) that will divide any two numbers provided. Incorporate a logger into your function and a log file locally created, as follows: Emit a log message with INFO level when the division of two numbers is an integer (exact number). Emit a log message with WARNING level when the division of two numbers is not an integer (rational or irrational number). Emit a log message with ERROR level when the numerator is zero. Emit a log message with CRITICAL level when the denominator is zero (cannot divide by zero!) For anything else, emit a DEBUG level log message. numerator 3. 5 denominatorStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started