Level 9 : What is the output of the following code?


x=50
y=50
id(x) == id(y)

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