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

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