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