Level 1 : Output of this snippet?


a = [1, 2, 3]
b = a[:]
b[0] = 99
print(a, b)

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