Level 1 : Output of this snippet?


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

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