logo CodeStepByStep logo

grade_count

Language/Type: Python expressions %
Author: Allison Obourn (on 2019/07/08)

Write the result of each expression. Make sure to give a value of the appropriate type (such as including a .0 at the end of a float). Note that a variable's value changes only if you re-assign it using the = operator.

grade = 2.7
count = 25
math.round(grade)                        # a) grade = _____
grade = math.round(grade)                # b) grade = _____
min = math.min(grade, math.floor(2.9))   # c) min   = _____
x = math.pow(2, 4)                       # d) x     = _____
x = math.sqrt(64)                        # e) x     = _____
math.sqrt(count)                         # f) count = _____
count = math.sqrt(count)                 # g) count = _____
a = math.abs(math.min(-1, -3))           # h) a     = _____
a) grade =
b) grade =
c) min =
d) x =
e) x =
f) count =
g) count =
h) a =

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.