logo CodeStepByStep logo

expressions_number2

Language/Type: Python expressions %
Author: Allison Obourn (on 2017/01/18)

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a .0 at the end of a float).

4 % 4 * 3 + 3 ** 2 % 5
1 ** 2 - 3 * 5 % 2
1 // 2 + 3 / 2 - 3
2 * 2.0 + 9 // 4
14 // 5 - 2 ** 3 * -2
21 % 5 * 5 - 13.2

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.