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

Need help!!! Answer asap!!
In paragraphs 10-11, how does John Watson’s experiment support Zimbardo’s finding that “relabeling” people can affect their behavior?
What’s the area of the shape
The human brain can handle only one attention-consuming task at a time T F
What is the correct equation for the line in slope-intercept form?
Can someone help me please ?????
Which term describes the loosening of tension and conflict between the US and USSR?* Perestrokia Detente Glasnost O Real Politic
Sergei buys a rectangular rug for his living room. He measures the diagonal of the rug to be 18 feet. The length of the rug is 3 feet longer than the width. W
Jonathan replaced the original factory tires (P220/65 R 18) on his pickup truck with (P255/60 R 17) tires. Calculate the circumference of Jonathan’s ORIGINAL t
There are 12 bags of apples on a market stall. The mean number of apples in each bag is 8. The table shows the number of apples in 11 of the bags. Number of |