Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedundefined

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 denominator

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

What is the basis for Security Concerns in Cloud Computing?

Answered: 1 week ago

Question

Describe the three main Cloud Computing Environments.

Answered: 1 week ago