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