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

Sara and Austin look more like their mother than their father, why?
On the coordinate grid of a map. Jeff's house is located at (9, 5). Hannah's house is at (-5, -5). Kenya's house is located at the midpoint between Jeff and Han
Estimate the volume of a rectangular prism with a length of 5.6 ft, a width of 8.8 ft, and a height of 10.9 ft.
pls help!! 5star and brainliest
help me plz again i’m terrible at math
Please help on this math problem. :))​
If m<1= 10x + 4 and m<2 =5x-4 find m<2
Help me please !!! This is geometry btw please help !!!!!!!!!! Meeeeee
Are the lengths of the side of the square and perimeter of the square related proportionally? Why or why not
Which of the following statements is true of imagined risks? A. They're a kind of positive reinforcement. B. They're unaffected by positive self-talk. C.