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


x = [34, 56]
print(len(map(str, x)))

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