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 | 1736+ Python FAQs | Share
scientific-notation | polymorphism | print | keyword | pseudocode | asyncio-module | identifier | id-function | slice | random | raise | regular-expression | pickling-&-unpickling | version | built-in-function | data_structure | lambdas | dictionary | precedence-and-associativity | min-function | filter-function | list-slicing | oops | factorial-function | type-conversion | class-and-inheritance | call | max-min | matrix | name-mangling | encoding | heap-memory | set | virtual-environment | memory-management | while-else-loop | attribute | zfill-function | sys | loops | pandas | for | list-comprehension | feature | classes | namespace | descriptors | version-check | match | debugging | bitwise | python_version | conversion | indexing | numpy | logical-operator | input-function | oop | __future__ | while-loop | arithmetic-operation | statement | loop | condition | loop-control | matrix-list-comprehension | built-in | counter-function | regex | list-method | variable | bitwise-operator | postfix | array | filter | functions | exception | __all__-attribute | stack | class | tuple | list-mutation | encapsulation | random-function | input-function | sorted | control-statement | string-formatting | inherit | mathematics | nested-loop | parameter | logical-operator | string-method | library | list | mathematical-function | error | async | copy | python-history | data-structure | class-and-instance-variable | fabs-function | overflow | init | operand | basic | numeric | identity-operator | round | operations | bitwise-operator | syntaxerror | iterator | benefit | expand-tab | global-keyword | round-function | syntax-error | default-mutable-argument | swapping | collection | namedtuple | immutability | higher-order-function | list-join | dictionaries | assignment-operator | functional-programming | application | goto-function | mapping-function | identity-operator | generators | docstring | immutable-data-type | generator | string-slicing | operator-and | assert | mutable | syntax-error | pep | sorting | thread | set-operation | data-structures | dicts | string | integer | shallow-copy | conditional-statement | python-module | memory | built-in-function | methods | list-vs-tuple | rollback | type_conversion | else-statement | odd-number | string-manipulation | data-structure | lambda-function | asyncio | yield | function-and-scope | comparison | access-modifier | decorator | list-comprehension | installation | def | implementation | generators-in-python | choice | gil | append | operators | magic-method | math | objects | print-statement | complex-number | interpreter | binary | lists | file-handling | data-type | recurssion | turtle | multiprocessing | exponentiation | function | floating-point-precision | python-repl | recursion | enumerate() | collections | list-operation | indentation | update | int | constructor | datetime | python-django | while-and-for-loop | control-flow | file-handling | type-conversion | join | operator | global-variable | invalid-list | control-flow | input | min-max-function | error-handling | matplotlib | __init_subclass__ | range | class-and-object | map-function | sys-module | precedence | escape-operator | exception-handling | string-formatting | lambda | binary-operation | software-design | sum() | python | package-management | object-attribute | complex | context-manager | string-method | import-method | operator-or | file | center | staticmethod | inheritance | comment | zip-function | sum-function | with-statement | mysql | threading | frozenset | destructor | module | arithmetic-expression | multiple-inheritance | conditional-statement | logical-operation | global-variable | operator-overloading | boolean | formal-and-actual-parameter | datatype | global | design-principle | string-concatenation | typeerror | format | head-and-tail | decimal | virtual-environment | expression | string-iteration | boolean-and-non-boolean | return-statement | compute | string-slicing | method | slicing | data-type | counter | deep-copy | static-method | split | math-copysign | file_handling | zip | list-indexing | touples | iterable | multithreading | tuple-unpacking | exception-handling | function-argument | syntax | command-line-parsing | comprehension ...