Question: We want to create a variable e 1 = 4 2 0 . 1 We then want to compare e 1 1 0 to 4

We want to create a variable e1=420.1 We then want to
compare e110 to 42. In Python, it would look like this:
Here are some statements about what results. Check all that are
true.
(a)
The 42****0.1 code will not work because 42 is an
integer and exponents only work on floats.
(b)
This is bad code: floating point numbers should never be
compared directly.
(c)
Mathematically, these terms are equal, but the limits of
floating point cause them not to be equal.
(d) The result will be False.
(e) The result will be True.
(f)
Python will optimize the code knowing that the ****0.1
and the ****10 will cancel out.
Select all possible options that apply.
 We want to create a variable e1=420.1 We then want to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!