Articles → Python → Difference between tuple and list

Difference between tuple and list



TupleList
Tuple are generally used for different data types.List are generally used for homogeneous data types.
Tuples are immutable.Lists are mutable.
Tuples are faster than list.Lists are slower than tuple.
Tuple takes less memory than lists.List takes more memory than tuples.



Posted By  -  Karan Gupta
 
Posted On  -  Monday, May 20, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250