Python Lists and Tuples
Python Lists and Tuples
• Immutable: Tuples, Strings, Numbers (int, float, etc) (no double in Python)
• No need to specify the size of the string in Python
• Mutable: Lists, dictionaries, Sets
DATATYPES
• Mutable: we can modify the contents of a list. We can append, update or
delete the elements of a list depending upon our requirements.
remove() list.remove(x) Removes the first item with the specified value