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.
Thank you for the feedback, but after checking, the python code at the end of the link doesnt appear as a direct solution for this problem (while related).
Since this is a 7kyu kata, that looks fine to me.
Have you tried it, did it pass the tests ?
on the link provided for kaprekan number at the end there is a solution coded in python! Probably better replace it with another link
alright got it, for those who're still stuck:
don't try to manipulate the original list, figure out a way to return a new one with the mentioned changes
You can and should rename the variables
This comment is hidden because it contains spoiler information about the solution
does the caller need to know what your parameter names are?
are we allowed to rename the variable into something shorter?
I can't believe you manage to solve this in one, single, line...
See if you find anything helpful in the FAQ: https://docs.codewars.com/training/troubleshooting
I passed the preliminary test in this kata but I can't submit it because it doesn't go through all the random tests, is it a bug or that's normal? I tried on my IDE and it works fine. Are strings or something odd included in the random tests? I can pass 60/100 random tests.
I have found two different solutions for this kata, one with for loops and one involving creating a dictionary that they work perfectly on pycharm but it does not work in here. What to do about it?
you must return the value you get from the function to main and not just print.
print may give you, the user the correct visual output but it does not return it to the machine.
so instead of print(generate_hashtag('Do We have A Hashtag')[0]) remove the print and inside your function write return "hashtag var name"