• Custom User Avatar

    delightful indeed

  • Custom User Avatar

    Is there a mistake in the description ? first and last character were removed, but test cases expect all characters before "," and all last characters after "," .... so my suggestion is to rename the description to "first item and last item" and convert to list ? ? ?

  • Custom User Avatar

    Python. It is more convinient to convert the string into the list. To do everything you need and to convert it backwords.

  • Custom User Avatar

    i study python for 2-3 weeks. I decided to do this kata quick, just to see others people solutions.
    I have got what i wanted :)))))

  • Custom User Avatar

    @coreymccue no worries!

    It's a very common little mistake, especially when the input/output specs of katas are written in plain english rather than using precise symbols like < vs <=.

    Welcome to Codewars by the way, and best wishes on your coding journey (by the way, you may be interested in the Codewars Discord - link in the sidebar on the left - where you can ask questions and generally get help quicker as you're starting out).

  • Custom User Avatar

    My mistake, I missed the crucial part of the instructions where it says to sum the numbers that are less than the input. Got it now, thanks!

  • Custom User Avatar

    Firstly make sure you are interpreting error message correctly:

    x should equal y in python tests mean that you are returning x and the correct answer is y.

    Also, based on quickly reading your solution, make sure you read description:

    "...sum of all the multiples of 3 or 5 below the number passed in..."

  • Custom User Avatar

    So it is saying 6 should = 8...
    6 is comprised of 3, 5, and 6, which total 14.
    What am I missing here?

  • Custom User Avatar

    Passed the test, but programm doesn't check the latest number.
    First used
    for i in range(number + 1)
    but system didn't let me go.
    Some tests matched, some - not, so it gave me a clue that something wrong with the cycle ranges.