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

Alex now realizes that his stereotypical view of women as weak is not accurate and so revises his beliefs. He is demonstrating the process of
hi there lololololol
What are the names of these ?
What is the area of a circle that has a diameter of 8 inches?
Rob's family ate 3 5/8 pizzas at a local restaurant. Each pizza weighs 1 1/4 kg. Which expression can be used to determine how many kilograms of pizza did Rob's
So, I have a prompt and really need help. I am supposed to include the Mexican Revolution. Can anyone please help me? I'd really appreciate it. I need it by 01.
Annie is making bags of candy to give to her 7 friends. She is putting two-thirds of a pound of candy in each bag. How many pounds of candy will she need? A. 4
How can you tell a eukaryotic cell from a prokaryotic cell just by looking at a photo like this?
¿de que trata la canción "camina siempre adelante"?
Im to dum for this, can big brain person do this PLZ