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


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

Author: Pavan | Tags: identity-operator | 1736+ Python FAQs | Share
thread | id-function | global-variable | list-comprehension | application | encoding | python-django | operator-overloading | default-mutable-argument | lists | operators | factorial-function | loop | arithmetic-operation | command-line-parsing | global-keyword | heap-memory | loops | match | numeric | built-in-function | multiple-inheritance | asyncio-module | datetime | head-and-tail | version | integer | mysql | sys | zfill-function | inheritance | with-statement | type_conversion | docstring | objects | object-attribute | operations | control-statement | error | scientific-notation | higher-order-function | classes | overflow | print | identifier | pep | lambda | pickling-&-unpickling | descriptors | method | goto-function | set | data_structure | typeerror | generators | logical-operation | statement | call | data-structure | matplotlib | pandas | import-method | operator-and | file-handling | type-conversion | list-slicing | init | indentation | fabs-function | destructor | arithmetic-expression | stack | sorted | global | zip | lambdas | string-manipulation | loop-control | functional-programming | syntax-error | namespace | complex-number | exception-handling | boolean | string-iteration | control-flow | range | function-argument | list | min-max-function | regular-expression | class-and-instance-variable | functions | syntax | data-structures | sorting | variable | choice | binary-operation | file_handling | int | function | list-method | input-function | print-statement | conditional-statement | __init_subclass__ | magic-method | string-slicing | string-formatting | context-manager | shallow-copy | access-modifier | type-conversion | compute | static-method | split | math-copysign | operand | matrix-list-comprehension | copy | counter | keyword | turtle | sys-module | installation | zip-function | python-repl | mathematical-function | multiprocessing | debugging | pseudocode | data-type | bitwise | bitwise-operator | list-comprehension | attribute | built-in-function | oop | identity-operator | expression | array | logical-operator | string-formatting | python_version | boolean-and-non-boolean | multithreading | memory-management | error-handling | benefit | mathematics | class-and-inheritance | binary | math | constructor | library | package-management | feature | parameter | filter-function | slicing | filter | regex | syntax-error | collection | while-else-loop | recurssion | immutability | class | data-type | min-function | expand-tab | exponentiation | python-module | complex | list-indexing | string-method | assert | lambda-function | asyncio | built-in | precedence | precedence-and-associativity | iterator | escape-operator | software-design | numpy | random | return-statement | global-variable | collections | conditional-statement | input | condition | iterable | logical-operator | join | __all__-attribute | else-statement | update | namedtuple | nested-loop | memory | mapping-function | yield | counter-function | comparison | sum() | virtual-environment | deep-copy | touples | decimal | comprehension | exception | async | module | frozenset | operator | operator-or | list-join | set-operation | string | interpreter | invalid-list | indexing | while-loop | random-function | raise | virtual-environment | decorator | map-function | sum-function | string-method | exception-handling | format | python | slice | dictionary | data-structure | comment | tuple-unpacking | odd-number | input-function | file | append | conversion | list-mutation | immutable-data-type | tuple | max-min | gil | swapping | staticmethod | function-and-scope | polymorphism | round | for | enumerate() | __future__ | string-concatenation | def | floating-point-precision | matrix | rollback | syntaxerror | name-mangling | recursion | encapsulation | generator | assignment-operator | center | python-history | list-vs-tuple | identity-operator | threading | mutable | postfix | control-flow | inherit | implementation | formal-and-actual-parameter | basic | bitwise-operator | design-principle | generators-in-python | dictionaries | dicts | round-function | class-and-object | version-check | datatype | oops | methods | list-operation | string-slicing | while-and-for-loop | file-handling ...