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


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

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