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

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