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

name the gases that catalytic converters remove from car exhaust
Is adding chocolate syrup to milk a chemical or physical change?
What is it that Gale suggests that leaves Katniss irritated? Why does Katniss react so harshly to his idea
Having a passion to explore and understand without misleading others or being misled exemplifies _____.
Rachel is training her dog, duke, to bark when there is a knock on the door. she already knows that squeaking a mouse toy will make duke bark automatically. so,
who is the creator of the incredible hulk
if the distance to the Sun is 149,476,000 km how many pencils would it take to build a stick that could touch the sun (assuming they would not be incinerated)
PLEASE HELP WILL MARK BRANLIEST!!!!!!!!!!!!! An object’s ____(mass or weight) will remain constant throughout the universe, but its ____(Mass or weight) can cha
What is 0.13592 in scientific notation
a. STOP: What is a technology habit you practice today that you now realize will not help you to be successful? Explain why it’s important to STOP doing this r