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 very match❤
Yep, the comment above is right, you need to return the result, not to console.log() it
Please read this: https://docs.codewars.com/training/troubleshooting#post-discourse
Looks like you are using console.log to output name+"does not play banjo", but you need to use return to do that, i had the same issue.
This comment is hidden because it contains spoiler information about the solution
Read that again.
Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
Not a kata issue.
My solution works in an interpreter; I don't understand why here I keep getting dozens of errors in codewars
This comment is hidden because it contains spoiler information about the solution
My code works on other IDEs but wont work here, someone tell me what I did wrong
def are_you_playing_banjo(name):
e = name[0].lower()
d = name[0].upper()
print(are_you_playing_banjo("Rikke"))
Please don't post code like that, read this: https://docs.codewars.com/training/troubleshooting/#post-discourse
This comment is hidden because it contains spoiler information about the solution
Let us analyse the function:
public static string AreYouPlayingBanjo(string name)
As you can see it consumes a parameter of type 'string' (string name). It requires the 'string' as a return value as well (public static 'string' ...). The 'Console.Write' does not return a 'string'. Yes, it looks like you are 'returning' a sentence but technically it is not returning the 'string' and this is why you are failing in this very example. How to return a string? Here is an example: return "this is a sentence of type string"; One more thing. You have intentionally changed the returning type of the function to 'void' which is a clear mistake: void AreYouPlayingBanjo(string name)
To OP, read the description again, you wrote the wrong letter in your code too.
I am not sure what the "copy/paste does not work" would mean, but see if this note on VIM mode helps: https://docs.codewars.com/references/kata-trainer#editors
Loading more items...