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