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

When did the famous english poet and playwright william shakespeare live?
If you were a tourist in Bali when this volcano erupted,discuss the impact that this event would have had on you.
A neighborhood swim club charges a one-time fee of $25 to join and $85 each month. If m is the number of months of membership and a is the total amount spent, t
helppppppppppppppppppppppppppppppppppp
Jefferson Franklin Long, a former tailor from Bibb County, was the first African American to be elected to the U.S. Congress. Which number represents the decade
Ari thinks the perfect milkshake has 3 ounces of caramel for every 5 scoops of ice cream. Freeze Zone makes batches of milkshakes with 6 ounces of caramel
Titchener relied almost exclusively on a single research method. what was it?
reasons why the u.s. entered the war of 1812
im having trouble with this word problem. A train travels 160 km in the same time that a plane covers 720 km. if the speed of the plane is 20 km per hour less t
if you are flipping a coin what is the sample space