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