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