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