Level 9 : What is the output of S[2] if S = [8,18,2]?

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