0

In my one of the interview the interview ask me about the tuple and the list in python. And ask which is more efficient in case of finding a element on both .

Vivek
  • 92
  • 8

1 Answers1

1

The major difference between tuples and lists is that a list is mutable, whereas a tuple is immutable. This means that a list can be changed, but a tuple cannot.The contents in a list can be modified, edited or deleted while the contents in a tuple are fixed and cannot be modified, edited or deleted.

Greezy002
  • 3
  • 2
Obaskly
  • 477
  • 2
  • 13