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

What numbers are always prime numbers?
Whats a form of birth control that involves with hormones?
Whats a form of birth control that involves with hormones?
Benzaldehyde, C6H5CHO, has a normal boiling point of 179.0 ∘C and a critical point at 422 ∘C and 45.9 atm. Estimate its vapor pressure at 139.0 ∘C.
What type of heterotroph is a rabbit??
As you approach an emergency vehicle parked in the roadway of an interstate highway with its emergency lights activated what should you do?
How to solve inequaities?
A piece of furniture has a retail price of $3,200 and is on sale at a 30% discount. how much money will be saved if the piece of furniture is purchased at the s
The force most responsible for holding the nucleus of an atom together is the:
Brake up with my sister