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


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

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