Level 1 : What happens if you execute the following code?


t = (1, 2, 3)
t *= 2
print(t)

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