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 We then want to
compare to In Python, it would look like this:
Here are some statements about what results. Check all that are
true.
a
The code will not work because 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
and the will cancel out.
Select all possible options that apply.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
