franciscobbinah43
franciscobbinah43 franciscobbinah43
  • 20-08-2020
  • Computers and Technology
contestada

when will you need to use a tuple data structure rather than a list of data structure​

Respuesta :

AddedApp
AddedApp AddedApp
  • 01-09-2020

Answer:

They can always be easily promoted to named tuples. Likewise, if the collection is going to be iterated over, I prefer a list. If it's just a container to hold multiple objects as one, I prefer a tuple. The first thing you need to decide is whether the data structure needs to be mutable or not

Answer Link

Otras preguntas

True or false? Boletus edulis perform the important ecosystem service of nitrogen fixation in forests; they also build cell walls made of chitin. Boletus edulis
what is the equation of the line, in point slope form, that passes through the points (-1,7) and (-2,3)
Which of the following energy sources drives the hydrologic cycle?A) internal heat energyB) river flowC) wind energyD) solar energyE) gravity
Onomatopoeia is widely used in literature. Read the examples provided in the reference image(except the last one). Choose one to explain the effect this literar
How does the size of the nucleus compared to the size of an atom
find the Edgemont of active with the given volume 216 cubic units ,512 cubic inches ,and 1000 cubic feet ​
Which law of motion accounts for the following statement? "A ball hit by a man travels faster than one hit by a boy."
Adjusting current schemas to make sense of new information is called
Which of the following is true about x (3)
If the car spends 2.5 hours going 35 miles per hour on the trip, how long does it spend going 35 miles per hours