Flashcard Details

Python

What is the difference between a list and a tuple in Python?

A List is Mutable (can be modified after creation) and defined with square brackets []. A tuple is Immutable (cannot be modified after creation) and defined with parentheses ().

1

https://www.geeksforgeeks.org/python-difference-between-list-and-tuple/

1