Level 1 : What is the output?


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

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