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

What is fundamentally incorrect with the hypothesis: "Salespeople are more likely to be successful when dealing with prospects who are similar to themselves in
Fill in the blanks. Est-ce que tu premed _____? Il y a des huitres
Before Jackie left for college, she told her friend Lisa that she thought sororities were filled with snobs and that she would never consider joining one. But d
When a natural disaster causes widespread, severe damage, it is not uncommon for people to acknowledge their losses but then add an "at least" statement, such a
Secret Prizes Inc. is planning to sell 200 buckets and produce 190 buckets during March. Each bucket requires 500 grams of plastic and one-half hour of direct l
the loss of biodiversity could lead to which of the following niche generalizations, genetic diversity, overpopulation, extinction​
Which sculptor was made using the assemblage technique?
what colors make white?
What’s the best reason to be on and online community
Area 42 units 42 units2 35 units 35 units2