logo

Crowdly

Browser

Add to Chrome

What is the output from the following program? f1 = 10.0 ** 20 f2 = f1 + 1.0 i...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What is the output from the following program?

f1 = 10.0 ** 20

f2 = f1 + 1.0

if f1 != f2:

print("Yay my high school arithmetic works")

else:

print("Oh no! What went wrong?")

a = 3.0 * 0.1 / 3

if a == 0.1:

print("I should think so too")

else:

print("Huh?")

Hint: Try the arithmetic expressions yourself in the Python Shell.
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on learn.canterbury.ac.nz?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome