Level 1 : What will be the output of the following code?


t = (1, 2, 3)
t[1] = 4

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