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