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