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