Level 10 : What is the correct answer for the below logic?


str = "India"
l = len(str)
print(l)

Author: HareramG | Tags: string | 1736+ Python FAQs | Share
sum-function | invalid-list | with-statement | default-mutable-argument | classes | global-variable | type_conversion | sys | debugging | bitwise | mathematics | asyncio | input-function | generator | else-statement | range | boolean-and-non-boolean | datetime | dictionary | precedence-and-associativity | complex | assert | mutable | choice | built-in | encapsulation | syntax-error | floating-point-precision | raise | operators | print | name-mangling | control-flow | asyncio-module | inheritance | built-in-function | iterator | __future__ | oop | exception | match | bitwise-operator | collection | filter | encoding | factorial-function | sys-module | implementation | matrix | string-method | array | conditional-statement | operations | mapping-function | swapping | inherit | __init_subclass__ | numpy | assignment-operator | thread | library | version-check | pseudocode | rollback | regex | generators-in-python | object-attribute | loop | attribute | max-min | objects | zip | higher-order-function | complex-number | string-slicing | head-and-tail | list-comprehension | escape-operator | access-modifier | sorted | scientific-notation | data-type | map-function | logical-operator | slice | operator-overloading | application | global-keyword | version | turtle | class | loop-control | arithmetic-operation | integer | yield | module | mysql | interpreter | syntaxerror | installation | zfill-function | odd-number | input | collections | control-statement | overflow | numeric | boolean | syntax-error | command-line-parsing | loops | string-formatting | fabs-function | identity-operator | file-handling | round | conversion | functions | id-function | sum() | string | list-join | list-comprehension | error | frozenset | python-django | async | set-operation | operator-or | multiple-inheritance | indexing | identity-operator | operand | regular-expression | class-and-inheritance | python-module | memory-management | counter-function | string-manipulation | matrix-list-comprehension | class-and-instance-variable | heap-memory | docstring | binary-operation | destructor | list | typeerror | return-statement | exception-handling | threading | round-function | condition | precedence | python-repl | filter-function | append | min-function | indentation | global-variable | lists | formal-and-actual-parameter | math | init | data-structure | slicing | python_version | global | binary | pickling-&-unpickling | feature | context-manager | decorator | package-management | python-history | goto-function | while-and-for-loop | list-slicing | math-copysign | function | while-else-loop | error-handling | data-structures | bitwise-operator | statement | while-loop | decimal | constructor | join | control-flow | string-method | methods | expand-tab | file-handling | oops | __all__-attribute | syntax | gil | design-principle | function-and-scope | virtual-environment | random-function | iterable | tuple-unpacking | sorting | def | matplotlib | parameter | counter | compute | identifier | mathematical-function | pep | recursion | string-concatenation | list-operation | list-method | software-design | file_handling | method | call | built-in-function | logical-operator | nested-loop | pandas | data-structure | basic | postfix | immutability | namespace | update | dicts | print-statement | immutable-data-type | int | enumerate() | namedtuple | arithmetic-expression | lambda-function | exponentiation | comment | dictionaries | split | memory | datatype | generators | copy | tuple | polymorphism | input-function | file | list-vs-tuple | zip-function | string-iteration | static-method | logical-operation | class-and-object | lambdas | list-mutation | string-slicing | comprehension | touples | data-type | function-argument | lambda | exception-handling | keyword | list-indexing | staticmethod | recurssion | type-conversion | type-conversion | multiprocessing | operator-and | data_structure | functional-programming | random | magic-method | benefit | shallow-copy | virtual-environment | center | multithreading | conditional-statement | min-max-function | stack | python | string-formatting | set | expression | descriptors | operator | comparison | deep-copy | variable | for | import-method | format ...