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