Level 10 : Which is the correct way to access a character "S" from the below string? str = "My name is Sandhya"

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