Level 10 : What will this output?


lst = [1, 2, 3, 4, 5]
print(lst[::-1][1:4])

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