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