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