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.
There are people out there that needs easy stuff like this.
Tho that is a suggestion
That's a suggestion
It already works. If it doesn't work, there's a problem with your code. You need to make a function that returns a function.
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
You're not supposed to return
'fw'
read the instructions again.need more examples, also while returning 'fw' it says 0 should equal to 1
not an issue
Not an issue
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
Not an issue
Not an issue
Loading more items...