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