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