QuestionQ145

VerifiedComputer Programming and Python Fundamentals

You are developing a Python application for your company. You have the following code.

Question Image

Which of the following expressions is equivalent to the expression in the function?

Explanation

Python evaluates multiplication before addition and subtraction, so the computation is a + (b * c) - d. The expressions in choices B and C contain unmatched parentheses and are not valid Python expressions; therefore, none of the listed expressions is equivalent as written.

Community Discussion

No comments yet. Be the first to start the discussion!