Level 1 : what is the output of the code?


list = list("1234")
list[0] = list[1] = 5
print(list)

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