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

Translate the following sentences; Puella solicia magnam vocem audit.Magnum clamorem non amat Davus.Sextus est puer strenuus.Davus puerum strenuum non amat.Puer
Annie rappels down a cliff in 3 jumps of 6.5 feet each.  Use a positive or negative number to express the change in her altitude.
there are twelve people on the jury there were 4more man than women how many man were there/
What are the steps to solve x+1 over 3 = y-5 over 2, for y
the cheerleaders are making a rectangular banner for a football game. the length of the banner is 30 ft long. the cheerleaders can use no more than 96 feet of t
The volume of a cardboard box is 729,000 centimeters squared. The box is 90 cm wide and 90 cm high. What is the length of the box? (Also, how do I solve this??
What is the successor of the natural number 2012?
name three types of conservation areas in south Africa for conserving terrestrial flora and fauna
What are the steps to solve x+1 over 3 = y-5 over 2, for y
what are the natural resources found in north america