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