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