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