Oct-01-2022, 07:15 PM
lists are less efficient because they need to include the means for any type of object or reference at any position to be changed to any other type of object or reference. if you need to modify your sequence objects, lists can do so directly in-place. to do that as a tuple, you need to build a whole new one. in some use cases, doing the latter could be more efficient. in most use cases, doing the former would be more efficient. it depends on what kind of change is happening.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.