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