Level 1 : What is the output for the below code?


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

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