Level 6 : What will be the output of the following code snippet?


day = ["Sunday", "Monday", "Tuesday", "Wednesday"];
print(day[-3:-1])

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