Level 1 : What will this output?


lst = [0, 1, 2]
lst[lst[lst[0]]] = 99
print(lst)

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