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