Level 1 : What will be the output of the following program?


x='x'
y='y'
print(x is y)

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