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