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