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.
'looks like u solved it'
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
this is not a kata issue. just remove print statements from the code and run it again.
Not an issue. Print the input.
This comment is hidden because it contains spoiler information about the solution
Since this is 8kyu, I think I can give some hints. Try searching the web for 'default arguments'. I hope that helps :D
If you read the error logs on the left, you'll see the error:
TypeError: arr() missing 1 required positional argument: 'n'
This means your code needs to handle cases when no argument is provided.
I just meant the person kept raising same issues on multiple katas and shouldn't do that :P
Also, I didn't notice the first line was a function (oops), but because of bad formatting it's hard to notice. Your function should be called
get_turkish_number(num)
, notturkno
, and instead of using input() to assign tonum
,num
will be passed to you as function argument. You also don't need to call the function yourself, it will be called by the tests, which you can see at bottom right, below code editor.He/she didn't raise an issue. Oops, didn't look at bottom. DO NEVER USE INPUTS
Don't raise issues when your code is the problem!
Where exactly is the function named 'get_turkish_number' in your code? There isn't one.
You do NOT need any inputs. You get them as function arguments. Please hit 'RESET' button and you should see what initial code (and your solution) should look like. Your return should be within the function, not outside it.
It seems you've been told before to return the value instead of printing it, please, read this fully: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
Also, check the sample tests, you have to return a boolean, not a string, and in Python, booleans are
True
andFalse
.That's because pycharm is not codewars and here you are expected to return the value instead of print it.
You're supposed to write a function, which would take the number as argument(you won't get input from stdin, which you've presumed), and you've to
return
the corresponding string by the function, notprint
them.