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