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