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