Level 10 : what is the output of the following code?


x = ['ab', 'cd']
print(len(list(map(list, x))))

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