Level 9 : What is the output?


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

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