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.
It is not explicitly stated what order key-values have to be returned, although in example it is sorted alphabetically. I don't know many programming languages, but in Python dictionary kept order from 3.6, in C# it is not kept. So maybe some clarification is needed.
The link in the description is dead, could use this instead: https://en.wikipedia.org/wiki/Nth_root#Simplified_form_of_a_radical_expression
Duplicate of https://www.codewars.com/kata/5850e85c6e997bddd300005d
idk if this is an issue or my mistake...
i got timed out when i hit the submit button, simple tests worked just fine (~800ms) tho.
p.s. total begginer here
I have changed it.
The output is always the same length, so a tuple is better practice in Python.
Yes, if it's translated into a language that doesn't have tuples, you can do that in that language. But Python has tuples.
I appreciate the feedback. This is my first kata, so I am still learning. Could someone explain why the output type would be better as a tuple? If someone makes a good argument, I will change it.
Similar:
https://www.codewars.com/kata/5850e85c6e997bddd300005d
https://www.codewars.com/kata/542f3d5fd002f86efc00081a
But the output type really should be a tuple. And why shouldn't it be an issue?
Not an issue.
How is that an issue, though??
This comment is hidden because it contains spoiler information about the solution
Thank You
Updated to Python 3.6, and fixed it so your solution passes the tests by using the correct function name ;)