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