Level 5 : What is the result of the following code?


s = "Hello"
print(s[1])

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