Level 1 : What will this output?


lst = [0, 1, 2, 3]
for i in lst:
    lst[i] += 10
print(lst)

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