Level 10 : What is the output?


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

Author: SandhyaR | Tags: list | 1736+ Python FAQs | Share
sys | copy | goto-function | gil | format | constructor | def | statement | lists | integer | encapsulation | context-manager | data-structures | loop-control | heap-memory | file | sum-function | destructor | global | list-comprehension | async | while-loop | data-structure | asyncio-module | encoding | min-function | turtle | feature | list-method | return-statement | recurssion | memory | map-function | else-statement | virtual-environment | indentation | while-else-loop | design-principle | arithmetic-operation | scientific-notation | generator | datatype | list-operation | counter | max-min | binary-operation | built-in-function | python | methods | list-join | class-and-inheritance | file_handling | formal-and-actual-parameter | import-method | random | collection | memory-management | list-mutation | built-in-function | loop | file-handling | global-keyword | pandas | mutable | descriptors | string-iteration | immutability | assignment-operator | functional-programming | function-argument | math-copysign | version | dictionary | id-function | class-and-object | python-django | software-design | sorted | polymorphism | identity-operator | enumerate() | classes | dictionaries | filter | type_conversion | list-vs-tuple | fabs-function | floating-point-precision | assert | identity-operator | operand | datetime | string | dicts | python_version | syntaxerror | swapping | sorting | min-max-function | file-handling | docstring | overflow | oops | pickling-&-unpickling | objects | default-mutable-argument | debugging | identifier | python-history | counter-function | tuple-unpacking | implementation | precedence-and-associativity | mapping-function | static-method | comprehension | zip-function | round-function | sys-module | control-flow | threading | precedence | functions | __all__-attribute | init | namedtuple | string-formatting | call | python-repl | class | regex | error | command-line-parsing | function-and-scope | numeric | set | filter-function | benefit | complex | magic-method | mathematical-function | class-and-instance-variable | postfix | data_structure | invalid-list | attribute | syntax-error | input | iterator | lambdas | shallow-copy | expand-tab | deep-copy | decorator | join | matplotlib | arithmetic-expression | input-function | boolean | int | frozenset | raise | string-formatting | logical-operation | mysql | head-and-tail | tuple | range | oop | complex-number | bitwise-operator | indexing | expression | data-structure | name-mangling | match | library | generators | exception | error-handling | list-comprehension | numpy | choice | higher-order-function | asyncio | comparison | global-variable | mathematics | string-manipulation | exception-handling | control-statement | update | slicing | immutable-data-type | matrix-list-comprehension | sum() | staticmethod | interpreter | input-function | operator-overloading | generators-in-python | multiple-inheritance | function | syntax-error | multithreading | operators | yield | inherit | decimal | module | string-method | string-slicing | collections | python-module | access-modifier | operator | matrix | binary | rollback | keyword | round | operator-or | random-function | namespace | __init_subclass__ | exponentiation | string-method | parameter | nested-loop | bitwise-operator | stack | with-statement | operator-and | logical-operator | zip | logical-operator | slice | factorial-function | touples | global-variable | application | string-slicing | basic | append | loops | bitwise | boolean-and-non-boolean | comment | string-concatenation | type-conversion | print | conditional-statement | split | recursion | typeerror | list-slicing | odd-number | data-type | set-operation | conditional-statement | pseudocode | type-conversion | inheritance | object-attribute | variable | conversion | while-and-for-loop | for | array | thread | data-type | operations | iterable | virtual-environment | zfill-function | pep | built-in | __future__ | method | installation | exception-handling | control-flow | compute | lambda | list-indexing | version-check | regular-expression | list | multiprocessing | condition | math | package-management | lambda-function | escape-operator | center | print-statement | syntax ...