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

A singer sings a note into a microphone. Which of the parts of the wave would be affected by the microphone and how? A) D, the frequency would get higher. B)
Where is Buckingham palace?
Which of the following pairs of words are homophones? a. Dessert and desert b. Brake and break c. Blight and bright d. Right and correct
How do I find the surface area of the figure? Thank you.
explain in a well substantiated paragraph two reasons why children should not be forced to choose sides in a divorce situation
use Articles of Confederation in a sentence.
Friendliness is revealed through the speaker's _____. information eyes voice statistics body
Helen is looking at her online bank account summary and sees a money transfer for +$250. Which of the following best describes +$250?
What is the temperature 32 degrees Fahrenheit in degrees Celsius? a. 20 degrees Celsius b. 0 degrees Celsius c. 10 degrees Celsius d. 10 degrees Celsius
In general most Americans believe the government is responsible for