Level 9 : What does the following code produce?


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

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