← Back to challenges

The Day in Dutch

PythonHardarraysdates

Instructions

Write a method that when passed a date as "dd mm yyyy" and returns the date's weekday name in the Dutch culture.

Examples

weekday_dutch("21 9 1970") ➞ "maandag"

weekday_dutch("2 9 1945") ➞ "zondag"

weekday_dutch("9 11 2001") ➞ "dinsdag"

Notes

  • You can assume the specified date is valid.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.