Computer Science, asked by kartavyaking1212, 4 days ago

When should python tuple be preferred over python list? ​

Answers

Answered by aryanpandey5012
5

Answer:

We would prefer tuple over lit due to following reason . 1 tuple is faster than list. 2 tuple can use as a key in a dictionary while in list not possible. 3 tuple is immutable and list is mutable

pls mark it brainliest and rate us

Answered by rishmithakishore
0

Answer:

If a data is needed in a program which is not supposed to be changed, then it is better to put it in 'tuples' than in 'list'.

Similar questions