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

Read this excerpt from "Wiley, His Mama, and the Hairy Man” in The People Could Fly She knew because she was from the swamps near the Tombigbee River and she kn
What is JP Morgan's legacy?
How does fertilization affect the chromosome number of a zygote?
If VT bisects STU, solve for x
write the equation of the perpendicular to the line x = 2 and passing through the point (2, -8)
The period of economic trouble that occurred in the United States and other countries during the 1920s and 1930s is called the Great Depression Prohibition Firs
Julie is roller skating. She can skate 16 mile in 2 minute. What is Julie's rate in miles per minute?
WILL GIVE BRAINLIEST! There should be a balance when it comes to how much you give. True False
explain why some foods have more calories per gram than others.
Nine cereal bars are shared equally by 4 students. How many does each student receive?