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

Prove that root 5+root 3 is an irrational no.
Find the constant of variation k for the inverse variation. Then write an equation for the inverse variation. Y=4.5 when x=3
Scott Peter’s bank granted him a single-payment loan of $3,250 to pay a repair bill. He agreed to repay the loan in 31 days at an exact interest rate of 11.75%.
What famous pirate made a home in georgia?
What is the momentum of a 76-kilogram horse running at a speed of 45 kilometers/hour?
What are the four powerful pillars of democracy?
I'm having trouble figuring this out! i've done some math but its not right at all and i'm stuck Point M is the midpoint of segment QR. If QM = 2x + 5 and MR =
the science club has 36 members, 12 girls and 24 boys whats the ratio
which type of radiation produces the greatest change in mass number? why?
Amanda earned a score of 940 on a national achievement test that was normally distributed. The mean test score was 850 with a standard deviation of 100. If 1000