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

12x + 8 + 84 = 15х +9
HELP HEL HELP ASAP ASAP HELP
How does incorrect market positioning affects future marketing strategic planning?
Explain the relationship of Charles law to absolute zero
Which of the following substances is a base? A. Vinegar B.lemon juice C. Water D. Liquid soap
a) The spiders web glittered with the morning dew. b) The spider’s web glittered with the morning dew. c) The spiders’ web glittered with the morning dew.
y+5x=8; x=-2,0,3 solve for y. then find the value of y for each value of x​
Johnny favors his own culture when comparing it to other cultures. What is this evidence of? A) custom B) deviance C) ethnocentrism D) cultural lag
.101 as a simplified fraction
Why do living organisms need carbon ?