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.
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
It looks like you didn't read any of the stuff that hobovsky posted, so if there's anyone to be mad at, it's yourself.
In short, you need to return the result, not print it to console. I don't know if you omitted this, but the solution is expected to be inside
Kata
class. If you're confused, copy your code somewhere, and hit the reset button, and fill in the solution.This comment is hidden because it contains spoiler information about the solution
Instead of getting mad on the site, you could get better results by fixing your solution. Your code is not correct. See if this page or this page helps. It also usually helps a lot if you show your non-working code, without it we cannot tell you what's wrong with it.
why tf is it not working
virtual studio did not find mistakes neither did chatGPT do
i can not copy paste here
im getting mad on this site
This code is not exactly correct. See if this helps: https://docs.codewars.com/training/training-example#writing-a-solution
Loading more items...