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

Why is Tom Robinson unable to use his left arm? A. He was born without the use of his left arm B. It was caught under a tractor when Tom was a child C. It got c
After data are collected they are often arranged in a
Which sentence contains an infinitive or infinitive phrase? a. Find me tomorrow and tell me all about it. b. Alice is going to listen to the sound of the crick
Physical activity and exercise typically lead to __________. a. increased stress b. depression c. higher energy levels d. reduced quality of life
What is the difference between 7/8 and 1/2
Which of the following ethnic groups have suffered a long history of discrimination in Japan? A. Ainu B. Uygurs C. Xinjiang D. Falun Gong
how would you categorize a consumer that usually catches and eats pray but also eats dead abimals
how many years would it take for a person it the united states to eat 855 pound of apples?
What is the value of 5 in 756?
round 123 to the nearest ten