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.
didn't know about the function name requirement, thanks!
From the code I can see, wrong datatype and a string is not an instance of int, so your code returns
None
. There is nolong
type in Python either (at least since 3.x). The function's name should bedescending_order
instead ofordenar
too.Uh, no idea then. We cannot help, we are sorry.
Unless you show. Your. Code. Se we can, you know, fix the kata.
Nope, same data type, and returning (not printing).
Probably:
Kata is OK, and your code is most probably incorrect. Show us your code and we will tell you what's wrong with it.
All of the test cases input returned the correct outputs in VSC (both in value and filetype). Same code here, CW console says it failed.
115,370 completions say otherwise. Can you elaborate which test case you think is wrong?
This comment is hidden because it contains spoiler information about the solution
oops, thanks!
Dude, you're amazing. I feel like a dipshit for having totally misread the question not once but like 50 times. I appreciate you, got it going now.
Because it's always going through the else (your condition is always false) and with some numbers it works. Numbers that already are in descending order.
How come it doesnt fail every single test then?
The input here is a number, not a string.
This comment is hidden because it contains spoiler information about the solution