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 ? ? ?
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).
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.
delightful indeed
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 ? ? ?
Python. It is more convinient to convert the string into the list. To do everything you need and to convert it backwords.
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 :)))))
@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).
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!
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..."
So it is saying 6 should = 8...
6 is comprised of 3, 5, and 6, which total 14.
What am I missing here?
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.