I think this one is a bit easy for 5 kyu but it is good to practice string methods and conditions
Why? It seems clear to me. '1' is not an integer. You're assuming the numbers should be unique in the returned list and the description says nothing about that.
'1'
thank you for the answer now I have submitted but it needs to be said that the description of this task is awful
Not a kata issue, it's a problem with your code, read my answer below.
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Print the input, check why your code fails.
although my func returns empty list on Jupyter my attempt always fail here? Anyone who managed to solve this issue? [1] should equal []
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
I think this one is a bit easy for 5 kyu but it is good to practice string methods and conditions
Why? It seems clear to me.
'1'
is not an integer. You're assuming the numbers should be unique in the returned list and the description says nothing about that.thank you for the answer now I have submitted but it needs to be said that the description of this task is awful
Not a kata issue, it's a problem with your code, read my answer below.
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Print the input, check why your code fails.
although my func returns empty list on Jupyter my attempt always fail here? Anyone who managed to solve this issue? [1] should equal []
This comment is hidden because it contains spoiler information about the solution