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.
This comment is hidden because it contains spoiler information about the solution
https://stackoverflow.com/questions/51940104/python-for-i-in-range2-2-printi-what-does-i-variable-contain-it-doesnt-co
i think this website explain it
I also was stumped by this, but understand now. Range returns a sequence between two numbers, so if there is no step/sequence between the two numbers, then there is subsequent number to return. Therefore, only one value is returned.
Do you know how
range
works? Do you know you can copy the code and test it yourself, on your computer or even here by clickingfork
below any solution?Your code is wrong, it doesn't return
"hello world!"
. It just returns the string passed to it. Not a kata issue. Please read this: https://docs.codewars.com/training/troubleshooting/