Level 10 : What is the output of the following code.


L = [1,4,5,6,7,8]
print(L[2:3])

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