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 | 1736+ Python FAQs | Share
regular-expression | lambda | syntax-error | filter-function | constructor | import-method | built-in-function | heap-memory | loop | variable | stack | init | software-design | pep | collection | copy | pickling-&-unpickling | keyword | factorial-function | call | operator-overloading | math | control-statement | compute | attribute | input-function | exception | logical-operation | python-repl | built-in-function | version | invalid-list | int | nested-loop | python-django | lambdas | return-statement | static-method | multiprocessing | string-method | syntax | else-statement | method | split | expression | inheritance | identifier | type-conversion | arithmetic-expression | file_handling | objects | input | iterable | exception-handling | multithreading | operator-and | list | shallow-copy | match | turtle | datetime | precedence-and-associativity | expand-tab | with-statement | list-method | numeric | format | goto-function | context-manager | arithmetic-operation | immutability | update | identity-operator | overflow | slice | higher-order-function | global-keyword | data-structures | filter | zfill-function | min-function | random | scientific-notation | lists | recurssion | print | string-iteration | descriptors | random-function | mysql | type_conversion | data_structure | global-variable | error | list-comprehension | memory-management | list-slicing | integer | object-attribute | comment | sys | raise | list-comprehension | touples | decimal | file-handling | debugging | binary | id-function | virtual-environment | string-method | escape-operator | encoding | multiple-inheritance | pandas | set | type-conversion | set-operation | data-structure | operations | syntax-error | built-in | classes | string-formatting | data-structure | tuple-unpacking | parameter | precedence | memory | namespace | bitwise-operator | global | dictionary | matrix-list-comprehension | command-line-parsing | dictionaries | implementation | sum() | generators-in-python | enumerate() | class-and-inheritance | pseudocode | installation | string-manipulation | lambda-function | function-argument | application | library | bitwise | frozenset | indentation | functional-programming | operators | while-loop | name-mangling | exponentiation | collections | sorted | list-operation | head-and-tail | map-function | module | typeerror | polymorphism | class | design-principle | asyncio-module | docstring | assert | conversion | loop-control | loops | string-concatenation | default-mutable-argument | string-formatting | counter-function | function-and-scope | global-variable | tuple | asyncio | control-flow | statement | floating-point-precision | while-and-for-loop | list-join | python-history | round-function | function | data-type | matplotlib | range | condition | python_version | binary-operation | logical-operator | list-vs-tuple | sum-function | oop | __all__-attribute | round | operator-or | magic-method | control-flow | threading | exception-handling | choice | class-and-instance-variable | generator | mathematics | odd-number | sorting | postfix | comparison | methods | yield | numpy | feature | version-check | gil | matrix | list-indexing | generators | boolean | oops | async | input-function | comprehension | complex-number | functions | iterator | virtual-environment | file-handling | data-type | destructor | append | __future__ | staticmethod | python | access-modifier | math-copysign | mathematical-function | boolean-and-non-boolean | class-and-object | min-max-function | inherit | formal-and-actual-parameter | mapping-function | while-else-loop | zip-function | operator | join | regex | conditional-statement | datatype | recursion | interpreter | counter | file | mutable | string | max-min | python-module | for | syntaxerror | fabs-function | __init_subclass__ | basic | thread | identity-operator | indexing | conditional-statement | bitwise-operator | deep-copy | decorator | print-statement | list-mutation | def | error-handling | operand | assignment-operator | rollback | dicts | zip | string-slicing | center | package-management | encapsulation | immutable-data-type | array | sys-module | namedtuple | complex | string-slicing | benefit | logical-operator | slicing | swapping ...