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