Level 9 : What does the following code produce?


t1 = (1, 2)
t2 = (t1, 3)
print(t2)

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