Level 3 : What will be the output of the following code?


t = (1, [2, 3], 4)
t[1][0] = 5
print(t)

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