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

based on the thesaurus entry, which word would best replace the underlined word without changing the overall meaning of this sentence?
my science teacher gave us this but i’m not sure how to do it
Jean picks peaches during her summer vacation. She gets paid $0.60 for each pound of peaches picked. Jean averages 45 pounds per hour. a. How much can Jean ear
England has a government that is ruled by a king or queen whose power is limited by a constitution. What government is that?
Help plz:))) I’ll mark u brainliest 10 ez POINTS What some words that describe a global citizen?
it is given that x+4 is a factor of p(x)=2x³+3x²+ax-12.When p (x) is divided by x-1 the remainder is b.Show that a=-23 and find the value of the constant b​
if a>0>b, show that 4a^2 - 5ab + b^2 >0
HELP ME ASAP!!! THIS IS DUE IN LIKE 10 MINUTES!!! Which image shows an inclined plane? A. A bowling alley with a set of pins at one end. B. A ping pong table. C
Which of the following is a function of the nucleus in organism 2?
Is the relation a function? {(14,9), (15,8), (8, 7), (1,9), (15, 2)