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