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

The area in the brain responsible for balance and fine motor control
Which of the following is NOT a relative pronoun? Othat Othose O whom O which
Phillis Wheatley was the first African-American woman to publish a book of poetry in America, and she did so while enslaved by John and Susannah Wheatley. Durin
What is an example of a device invented to communicate?
which expression is the equivalent to the given expression (3m-4)³(3m³)
Which of the following describes the relationship between filibuster and cloture?
2.2) Put the verbs into the past simple or past continuous. e.g. She arrived when we were having dinner (arrive, have). a) ________ you __________ fast when the
What is the purpose of statistical analysis? A. to compare the data to the hypothesis and the difference between the expected values and the results Hope C. to
how to figure out pythagoras theorem?
Which idea from this passage can be analyzed from both feminist and historical perspectives?