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