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