Level 10 : what is the output of the below list method?


l=list('1234')
l[0]=l[1]=5
print(l)

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