Level 10 : what is output of the following code?


a=[1,2,3]
b=a
print(a is b,a==b)

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