We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a3dda0 commit 5b211b6Copy full SHA for 5b211b6
exercises/practice/meetup/.meta/example.py
@@ -14,7 +14,7 @@ def _choice(week):
14
return lambda dates: next(date for date in dates if
15
13 <= date.day <= 19)
16
17
- ordinals = {'first', 'second', 'third', 'fourth', 'fifth', 'sixth'}
+ ordinals = ('first', 'second', 'third', 'fourth', 'fifth', 'sixth')
18
day = -1 if (week == 'last') else (ordinals.index(week))
19
20
def _func(dates):
0 commit comments