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