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