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

Author: IndraD | Tags: list-vs-tuple | 1859+ Python FAQs | Share
reading:-read(),-readline(),-readlines() | invalid-list | lambda-function | copy | handling-missing-values-(fillna,-dropna) | class-and-inheritance | int | error | goto-function | exponentiation | creating-custom-modules | head-and-tail | immutability | built-in-function | functional-programming | generator | list-join | decorator | identity-operator | filter-function | built-in-modules | module | keyword | heap-memory | membership-operators-(in,-not-in) | mysql | multiple-inheritance | arithmetic-operation | control-flow | namedtuple | conditional-statements | joining-and-merging-dataframes | method | mapping-function | math | input-function | using-os-and-pathlib-modules | indexing:-loc-vs-iloc | matrix-list-comprehension | dataframe-and-series-objects | benefit | matrix | generators-in-python | default-arguments | boolean-and-non-boolean | list,-set,-and-dictionary-comprehensions | logical-operation | tuple | identity-operator | conversion | command-line-parsing | file | decimal | format | tuple-methods | writing:-write(),-writelines() | update | expand-tab | input | function | __future__ | global-variable | multithreading | import-method | comment | inherit | key-value-pairs | list-operation | max-min | working-with-temporary-files-using-tempfile | method-overloading | functions | list-method | multiple-except-blocks | filter | context-manager | namespace | else | global-keyword | data-type | list | pseudocode | integer | zip-function | gil | nested-loop | feature | zip | difference-between-threads-and-processes | init | sum-function | counter-function | unit-testing | tuple-unpacking | lambda-functions | basic | defining-functions | comparison | complex | error-handling | encapsulation | single-inheritance | data_structure | library | python-module | thread | syntax-error | syntax-error | sys | loop-control-statements | __init_subclass__ | string-methods | string-slicing | mathematical-function | debugging | thread-synchronization | file-handling | print | pandas | python | thread-safe-data-structures-(queue.queue) | strings | assignment-operator | choice | static-method | split | bitwise-operator | sorting | logical-operators | formal-and-actual-parameter | mutable | string-manipulation | formatting-with-strftime | overriding-methods | list-indexing | list-comprehensions | reading-and-writing-large-files-efficiently | __all__-attribute | data-type-conversions | name-mangling | threading | error-handling | dictionary-comprehensions | with-statement | collections | operations | expression | enumerate() | software-design | indexing | exception-handling | sorted | set-operation | file_handling | anchors-(^,-$) | math-copysign | encoding | immutable-data-type | min-max-function | stack | introduction-to-threads | complex-number | integers | docstring | built-in-function | time-series-with-pandas | lists | introduction-to-multiprocessing | typeerror | test-discovery | condition | list-comprehension | methods | using-lists-as-stacks | else-statement | precedence | string-method | min-function | logical-operator | exception-handling | memory-management | list-comprehension | counter | sorting-and-ranking | literal-characters-and-special-characters | raise-statement | memory | binary | slice | factorial-function | higher-order-function | operator | pep | why-use-multiprocessing-over-threading?-(gil) | datetime | version | variable | string-slicing | python-django | type-conversion-and-casting | multiple-inheritance | arithmetic-expression | sets | string | string-concatenation | recurssion | classes | mathematics | while-and-for-loop | deep-copy | application | using-the-threading-module | global | center | join | intering | type_conversion | statement | generators | using-yield-in-functions | async | iterators | built-in | introduction-to-python | working-with-file-paths | directory-operations | fabs-function | constructor | lambda | multiprocessing | input-function | using-join()-and-is_alive()-methods | creating-and-starting-threads | shallow-copy | random | string-formatting | def | data-structure | matplotlib | attribute | global-variable | bitwise-operator | class-and-object | list-methods-and-slicing | using-else-and-finally | lambdas | collection | datatype | interpreter | magic-method | escape-operator | indentation | using-map()-for-transformations | id-function | regex | data-structures | virtual-environment | map-function | round | syntaxerror | file-handling | class-and-instance-variable | python-repl | frozenset | string-iteration | assignment-operators | tuples | list-mutation | identifier | regular-expressions | function-argument | touples | access-modifier | operator-overloading | slicing | managing-directories-with-os-and-shutil | return-statement | implementation | numeric | staticmethod | conditional-statement | operator-and | scientific-notation | yield | iterable | descriptors | functional-programming | inheritance | range | list-slicing | list-vs-tuple | floats | comprehension | loops | iterator | class-decorators | data-types | round-function | asyncio | dictionary | working-with-binary-files-(rb,-wb) | set | installation | package-management | while-loop | advanced-file-operations | call | loop | turtle | asyncio-module | walking-through-directories-using-os.walk() | array | match | bitwise | exception | string-method | while-else-loop | loop-control | for | random-function | numpy | identity-operators-(is,-is-not) | parsing-with-strptime | floating-point-precision | filtering-and-indexing | data-type | function-and-scope | dictionary-methods | operator-or | virtual-environment | object-attribute | pickling--unpickling | oop | compute | type-conversion | class | aggregating-data-with-functools.reduce() | operators | python-history | append | control-statement | syntax | dicts | boolean | boolean-masking | using-assertions-(assertequal,-assertraises) | dictionaries | python-operators | booleans | assert | objects | conditional-statement | sys-module | default-mutable-argument | precedence-and-associativity | print-statement | destructor | binary-operation | type-conversion | control-flow | design-principle | odd-number | data-structures-in-python | working-with-dates-and-times | swapping | raise | zfill-function | parameter | regular-expression | python-syntax-and-structure | overflow | pass | polymorphism | oops | recursion | opening-files-(open()) | version-check | operand | reading-and-writing-files | string-formatting | python_version | quantifiers-(*,-+,-?,-{}) | arbitrary-arguments-(*args,-**kwargs) | datetime.date,-datetime.time,-datetime.datetime | sum() | logical-operator | rollback | postfix | data-structure | while-loops ...