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

Why did the anti-federalists originally oppose the constitution?
Read this excerpt from "The Diamond Necklace": "The girl was one of those pretty and charming young creatures who sometimes are born, as if by a slip of fate,
Where does secretion occur in the nephron?
Determine the mechanical energy of this object: a 1-kg ball rolls on the ground at 2m/s
the markup on a restaurant meal is 250%. A meal costs $7.30 to produce. How much will the customer be charged before tax and tip?
Can someone help me with this problem???
write a real-world problem that describes 1/16
Quien me allude con esta por favor
Due to the octet rule carbon can form how many bonds?
Your job pays you $1,600 per month. all taxes combined reduce your pay by 25%. your current expenses are $1,200 per month. you want to join a health club for $7