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