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