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