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