Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
What a crazy world we would live in if the winter began on December 1st, the spring on March 1st, the summer on June 1st and the autumn on September 1st...
This would be easier if the tests would tell you the results for each test. Without that it's very hard to know what you need to do.
Hi Chrono,
you are right, I've rewritten the function's name. It is working now.
Many thanks!
Check you haven't changed the function's name:
Hi Guys, when I want to run a test it says:
"Traceback (most recent call last):
File "tests.py", line 2, in
from solution import four_seasons
ImportError: cannot import name 'four_seasons' from 'solution' (/workspace/default/solution.py)"
Has anyone else experienced this?
fixed
fixed
Both Python and Ruby versions are wrong.
All values in range
[1; 366]
have to be tested in Python and Ruby.( JS )
Reference solution debugged, fixed tests added, upgraded to current Node version.
Are you very, very sure you have the correct dates for the seasons? Day 79 should be in winter, according to my calculations.
Please, for the reference / example solution, write it as readable as you can humanly make it, especially for this kata. Off by one errors are too easy to make here.
Please mention which language.
Testing for four_seasons(79)
'Winter Season' should equal 'Spring Season'
If 1 is January 1st, then 79 is March 20th (31 + 28 + 20 = 79).
"winter begins on 21 December and ends on 20 March"
Which is Winter Season.
Python and Ruby translation kumited :) with all possible inputs tested ~ please check and approve T_T
Loading more items...