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

At the end of Chapter 5, of the Great Gatsby Nick says, “It was the hour of a profound human change, and excitement was generating on the air” (95). What happen
Divide 2/3 divided by 1/6 =
I need help with biology please
Find the value of 5x+2 given that -3x-1=2. Simplify your answer as much as possible.
find the theme of this poem Breath in breath out I say inside my head Its a new day another time I get out my bed With a smile on my face, Not a hint of dread
A block is being held in place on a frictionless surface. The block has a mass of 3.9 kg and is held in place on an incline of angle = 32° by a horizontal forc
8x + 5. – 2x - 4 + 5.8​
Which of these is an example of symbolism in a painting? A. The use of shading to make a face look anguished B. The depiction of a lily that represents purity C
How would you describe the relationship between the weight of an object and gravity? As the force of gravity increases the weight of an object______. A. increas
The first species to live in an area of primary succession are called?