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.
This comment is hidden because it contains spoiler information about the solution
Omg, whitespace at the end...... Thanks men :D
Well, in your case they are indeed different.
Well, kata is right :D
This comment is hidden because it contains spoiler information about the solution
I got the same errors tells that assert is diffrent than result but it isnt :D
Awesome. I get you. I couldn't think of a way of adding arguments to an array. Can I say [...a,b] or [a,b]?
arguments
thing, I mean)arr
thing, just a number that you'll update, then return in the end.arguments
? Don't use that... It's old fashion and the best way to do bad things.replace
isn't a method ofArray.prototype
=> ???replace
to the output ofpush
, which is a number... (see MDN documentation) => ???!??This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If you changed all your
print(suma)
forreturn suma
you should see here the results instead ofNone
in the CW trainer. If you're testing your code in another place, you'll have to print the returned value to see it, like this:print(get_sum(0,1))
. There is a problem with your code, check how you defineliczby
in one case and in another, you missed something in one of them.I'm new at coding and i really appreciate your help but now i'm also stuck casue I changed every print to "return suma " but now it doesnt give back any result. I know that it stores this value somewhere but how i can call it and make it to appear to the screen as a result of this function (without print)?
Please read this. Your function should return the result, not print it.
This comment is hidden because it contains spoiler information about the solution