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