Level 10 : What is the output for the below


x = [4, 5, 6]
y = x
print( x is y, x==y)

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