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


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

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