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


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

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