Level 9 : What will be the output?


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

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