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