Psychology, asked by UnicornAyushh, 1 day ago

what is tuple and list in python?​

Answers

Answered by beherarajani620
4

Answer:

In Python, the list is a type of container in Data Structures, which is used to store multiple data at the same time. ... Tuple is also a sequence data type that can contain elements of different data types, but these are immutable in nature. In other words, a tuple is a collection of Python objects separated by commas.

Please mark me as Brainliest.

Answered by Anonymous
17

List:-

  • It is mutable
  • The implication of iterations is time-consuming in the list.
  • Operations like insertion and deletion are better performed.

Tuple:-

  • It is immutable
  • Implications of iterations are much faster in tuples.
  • Elements can be accessed better
Similar questions