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

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