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