what is the difference between list and tuple in python?
List and Tuple in Python are the class of data structure. The list is dynamic, whereas tuple has static characteristics. ... 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.