In Python, List and Tuples both are data structures. In case of List, we can include integers, as well as characters, in the data structure and the values in the List, can be edited or altered, in technical terms, it is known as mutability.
Whereas in the case of Tuples, characters and integers are included, but those cannot be edited, hence only they are immutable. But, the question which comes in mind is that if List and Tuples have the same characteristics of data structure, why we need two types of data structure.
Why we need two types of data structure
When there is a requirement of a fixed data structure which cannot be altered throughout the scripting of the program we can safely use Tuple. But, if we need a dynamic data structure which can be altered and edited as required during the scripting process of the programming, List is more preferable.
So in order to meet the requirement of the programming and to make the scripting efficient, either List or Tuples are used. Tuples are preferred in a memory-intensive task, whereas, List is preferred in case of buffers. When we are sure about the number of columns in a data structure we should select Tuple and when we are not we should go for List.
If you are interested in Computer Programming, You can mail at smartsubu2020@gmail.com.