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