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