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.
edit: nvm
haha, thanks I got it to work now :)
It doesn't actually want you to return "Negative numbers cannot be square numbers" , it wants you to return False for negative numbers. The string you saw for the test case is the optional argument which will output a message if the user gets the wrong answer. Silly mistake ;)
This comment is hidden because it contains spoiler information about the solution
Great job! Thanx!
Done!
I translated https://www.codewars.com/kata/576bb3c4b1abc497ec000065 into JS.
Du you like to translate it to CoffeeScript?
I translated https://www.codewars.com/kata/576bb3c4b1abc497ec000065 into JS.
Du you like to translate it to Ruby and Python?
This comment is hidden because it contains spoiler information about the solution
I'm getting this issue: "AttributeError: 'NoneType' object has no attribute 'sort' "
Does this mean that the sort function doesnt work? (programming in python). The test cases work on my IDE BTW
Can you mark this as resolved please. Thanks.
No problem dude.
Works, thanks!
You need to return the value instead of printing it. All katas work like this for future reference :)
my code works on my IDE but for some reason it keeps failing the tests. Anybody know why? Heres my code:
seq = [1,1,1,1]
def dict_mult(lista):
binary = [1,2,4,8]
listc = []
for i in range(0, len(lista)):
listc.append(lista[i]*binary[i])
dict_mult(seq)