Level 9 : What will be the output of the following Python code?


x = ['ab', 'cd']
print(len(list(map(list, x))))

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