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

The sun ____ in the East.​
Find the coordinates of the midpoint of the line segment with endpoints (6, -2) and (-3, -2). midpoint: (x, y) = ( )
how many molecules of oxygen is in water
-15p+32p please awnser its rsm hw
Plot the graph of 2x - y = 6 and y = 4. Write down the coordinates of the point where the lines intersect
The width, of a rectangle is 1/2 of its length. What are the sides of the rectangle if its perimeter is 63 in
adeshinaquadrioluseg Don't look at this users questions they are literally all wrong Trash
PLEASE HELP!! Whats the lifestyle or entertainment in The Odyssey? (I need it for a newspaper project so please answer w a good explanation)
Kara is running a marathon. After 2 hours, Kara has run 13 miles. After 4 hours, Kara has run 26 miles. What is her speed, in miles per hour?​
= A coat is reduced $24 from the original price of $400. What is the percent decrease? The price of the coat decreased by%. K