Level 10 : What will this print?


a = [1, 2, 3]
b = a.copy()
b[1] = 99
print(a, b)

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