0

Lists Tuples

Lists are mutable, i.e., they can be edited Tuples possess immutability, denoting their incapability of being modified like lists.

Lists are usually slower than tuples Tuples are faster than lists

Lists consume a lot of memory Tuples consume less memory when compared to lists

Lists have a higher likelihood of experiencing unexpected changes, making them less reliable in terms of errors. Tuples offer increased reliability due to their resistance to unexpected modifications.

Lists consist of many built-in functions. Tuples do not consist of any built-in functions.

Syntax:

list_1 = [10, ‘Intellipaat’, 20]

 

Syntax:

  • tup_1 = (10, ‘Intellipaat’ , 20)
Shathana. S.R. Answered question July 7, 2023