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


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

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