vegasviman vegasviman
  • 02-04-2022
  • Computers and Technology
contestada

How could the following line of code be shortened?

average = average + 1

Group of answer choices:

1.average + a

2.average += 1

3.average = + 1

4.average = 1 + average

Respuesta :

markmeadows67
markmeadows67 markmeadows67
  • 02-04-2022

Answer:

2

Explanation:

The second option is the only one that will work. The last would work but doesn't make the code any shorter.

Answer Link

Otras preguntas

why was the 54th massachusetts regiment famous
Assuming Leakey's hypothesis of a sixth mass extinction to be true, how will we expect the model to change?
Is it a right triangle? And how to you find the points in the slope?
A gas sample of Xe occupies 10-liter balloon at 27 degrees C under a pressure of 1.2 atm. Approximately what volume would the gas occupy at 350 K and 2 atm of p
pls heeeelp meeeeeee
milk is an example of a (1 point) solution. homogeneous mixture. colloid. compound
Bipolar disorder, major depression, and anxiety disorders may all be treated with anti-psychotic medications anti-anxiety medications mood stabilizers anti-
which of the following would best complete the graph above ?
What were the laws of segregation meant to do?
Start with 80 then use the rule “subtract 4” give five numbers.