Level 9 : What will this code output?


t = (1, 2, 3)
for i in range(len(t)):
    t += (t[i],)
print(t)

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