• Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    'looks like u solved it'

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    this is not a kata issue. just remove print statements from the code and run it again.

  • Custom User Avatar

    Not an issue. Print the input.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    Since this is 8kyu, I think I can give some hints. Try searching the web for 'default arguments'. I hope that helps :D

  • Custom User Avatar

    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.

  • Custom User Avatar

    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), not turkno, and instead of using input() to assign to num, 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.

  • Custom User Avatar

    He/she didn't raise an issue. Oops, didn't look at bottom. DO NEVER USE INPUTS

  • Custom User Avatar

    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.

    print("Enter a numerical value between 00-99")
    num = int(input())
    

    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.

  • Custom User Avatar

    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 and False.

  • Custom User Avatar

    That's because pycharm is not codewars and here you are expected to return the value instead of print it.

  • Custom User Avatar

    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, not print them.