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