Level 9 : What is the output?


lst = [10, 20, 30, 40]
print(lst[::-2])

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