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