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