prettymami1424 prettymami1424
  • 21-12-2020
  • Computers and Technology
contestada

What is the value of the variable result after these lines of code are executed?

>>> a = 2
>>> b = -3
>>> c = 4
>>> result = (a - b) * c
The value of result is
.

Respuesta :

goodLizard
goodLizard goodLizard
  • 25-12-2020

Answer:

20

Explanation:

We can substitute to find the value of result :

(a - b) * c = (2 + 3 ) * 4 (the '*' operator means to multiply)

= 20

Hope this helps :)

Answer Link

Otras preguntas

Which of the following is NOT one of Deming’s 14 principles of transformation for improving the practice of management? A. minimize total cost B. maintain barri
Which of the following properties should carbon (C) have based on its position onthe periodic table?A. ShinyB. DenseC. MalleableD. Poor conductor​
Help please Name the quadrant or axis where each point lies.
what is the explicit formula for this sequence ?
Select all the correct answers. What does an increase in the temperature of air indicate?
Activating background knowledge, preteaching critical vocabulary, generating questions, and finding the main ideas are all considered:
Which of the following was a nonviolent protest used to fight segregation on a public transportation system? A. Congress of Racial Equality B. The Montgomery bu
What is the value of X?
Which of the following sentences uses the word depleting correctly? 1. The bright morning sunshine continued depleting through the window until is was shining f
3. Which of the following bestcaptures the author's point ofview on altruism in the text?A The author doesn't know thetrue reasoning behindaltruism but thinks i