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.
(3 years, wow! Sorry for the "ressurrection") also if you parse x into an int instead floor (correct me if I am wrong) if there was any float as arbument you grant it will works too.
This comment is hidden because it contains spoiler information about the solution
Misclicked 'Submit' before removing print(), duh
Ouch, that hurts
Thank you, I missed that - then indeed there's no need for dealing with sqrt- and ^2-ing :)
"X will be a valid integer number."
Only valid for integer
x
. Works wrong for, say,x
= 31.7Like this one so much!
In this particular case it doesn't make sense.
Probably author had to cast while developing the solution and then forgot to remove it during final refactoring.