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

In photosynthesis what substances are produced
Raul had 56 bouncy balls. he puts 3 times as many balls into red gifts bags as he puts into green gift bags. If he puts the same number of balls into each bag,
how can I use drawbacks in a sentence and counterpoint in a sentence
1. The local theater charges $8 for a child’s ticket and $12 for an adult’s ticket. a.) Write an expression that describes the amount of money needed to buy x c
in a two column proof the left column contains a series of deduction?
the number line below represents which combined inequality? number line with a closed circle on -4 and 3 with shading in between x greater than or equal to -4 a
Which function is used to model hourly pay? A linear equations B quadratic equation Cpiece rate D picewise
write in function notation y=5x 3
I'm a little confused on a question a have to do. It says, Alan has a map of Narniland on his kitchen table.
What is the answer to this problem -69=7v-6