You need to sign in or sign up before continuing.×
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.
Test.describe("Basic tests")
Test.assert_equals(function_factory(2,3,'+')(), 5)
Test.assert_equals(function_factory(1,1,'-')(), 0)
Test.assert_equals(function_factory(2,2,'*')(), 4)
Test.assert_equals(function_factory(24,4,'/')(), 6)
Test.assert_equals(function_factory(14,4,'%')(), 2)
changing to this seems to work :)
change to Test.describe("Basic tests")
Test.assert_equals(function_factory(2,3,'+'), 5)
Test.assert_equals(function_factory(1,1,'-'), 0)
Test.assert_equals(function_factory(2,2,'*'), 4)
Test.assert_equals(function_factory(24,4,'/'), 6)
Test.assert_equals(function_factory(14,4,'%'), 2)
python version is pretty terrible as you're passing answers inside the function.. also the description is pretty terrible
need more examples, also while returning 'fw' it says 0 should equal to 1
This comment is hidden because it contains spoiler information about the solution
drop huge numbers for python i am getting timeout error despite using generator object and or arrays
my bad, it was supposed to be a suggestion
it's a little easy, maybe make people validate if college exist first or not ?
The program is awesome for Beginner it would be awesome if you added string numbers in the array too
...
more sample test, and the test you gave is wrong
Perhaps you could add a small complication: return 0 if input is a string, 1 if input is an int, 2 if a float, etc.
...
that's wayy to easy
I loved that i could use 3 nested loops, but the examples could be better.
this is way too easy
Loading more items...