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