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

Sunny’s Surf Shop sold 20 surfboards last week. This week, they will sell 320 percent as many. How many surfboards will Sunny’s sell this week?
EJ Corp bond carries a 9 percent coupon, paid semi-annually. The par value is $1,000, and the bond matures in 12 years. If the bond currently sells for $905. 50
1. A zoo has 340 animals and then increases the number of animals by 5%. How many animals are at the zoo now? 30 points!
freya thinks of a number she multiplies the number by 2 and then subtracts 10 the result is 50 what number did freya think of?
Answer ASAP One number is 14 more than another number. If the two numbers have a sum of 40, what are the numbers?
Judith has been experiencing a great deal of pain in her lower back. Her experience of pain is in part the result of certain psychological factors such as:.
Please help me 100 points and brainliest Which net represents this solid figure?
Please help me with 19-22 on my study guide
I do not know the answer for this, what is the answer?
According to the declaration of independence, what is the job of government?.