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