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