Level 2 : What will be the output of the following Python code?


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

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