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