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.
Thank you!
Because these should be attributes of
Hero
and not methods.This comment is hidden because it contains spoiler information about the solution
Resolved when updating Python tests - description (should be) much clearer now; amongst other things, states clearly that only positive integers are used in Pythagorean triples. Tests also only use
n >= 1
.link to update post
Thanks @akar-0 and @ASchreiber also.
Looks good to me dude
Closed outstanding issues relevant to Python kata below and removed from Github list.
Python fork with lots of updates
Updates test framework
Adds random tests (actually generates Pythagorean triples also)
Improved description taking into account all the comments, and to reflect 8 kyu level. Removed confusing use of 'a,b,c' to make it clear that input is not always in 'a,b,c' order. Added detailed examples of relevant test cases.
Yes, because random tests are random and your code is failing when some conditions happen.
Could I have the different amount of failed tests? When I run the same solutions several times.
Nice one!
Keep in mind that values in list are not ordered!
Yes, it is. But the instructions are not clear enough.
You can use 'try: & except: return "Error" ' mechanics
This comment is hidden because it contains spoiler information about the solution
Just see the initial solution setup. It's a simple method that takes 2 Points.
This comment is hidden because it contains spoiler information about the solution
why not?
Loading more items...