lexyhallzie
lexyhallzie lexyhallzie
  • 14-01-2021
  • Computers and Technology
contestada

You have this code in your program.

from array import *
K = array('b',[10, 5, 2, 7])

Which line of code will add 12 to the array?

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 19-01-2021

Answer:

K.append(12)

Explanation:

From the question, the array name is K.

In python, to add to an array, you make use of the following syntax.

[array-name].append(value)

In this case:

[array-name] = k

and the value to be added is:

value = 12

So, we have:

K.append(12)

Answer Link

Otras preguntas

what is a improper fraction of 47/9 as a mixed number
How did the Iroquois eventually upset the balance of power between the French and the British?
how do you think electricity was discovered
How does the chemical structure of a paper towel differ from the potatoes?
Alg 1 Given the data set for the length of time a person has been jogging and the person's speed, hypothesize a relationship between the variables. a. I would
how to put 2y-8x=20 into slope intercept form
hello can anyone help me on the next four math questions please ? 1)5(x+2) 2) 4(2x+3) 3) 8(x+2) 4) 5(7x+4) thanks !!!
. How did feudalism offer a stable political system for Europe? Feudal serfs were reliable workers because they practiced a single skill. Feudal farms could fee
What happens when you move to the left of a decimal point?
How to solve this???