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