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