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.
well ...
Alienware: "You're hired"
Подтверждаю, у меня такая же проблема!!!
Okay. Thank you. Got it.
The problem was that I was copying code from the output that generates Check(args) function and testing it in my IDE, but in fact I should have copied repr(code). After this check, I realized what you mean: instead of one "\n" character, I printed "\" and "n". Much appreciated.
msg
is like a print.When you write in a code
print("a\nb")
you don't expect to get\n
visible in the console, you expect the b on the next line. Henceprint
is interpreting the double char you wrote as the escapedchr(10)
(iirc, it's 10... didn't check). So must domsg
.Now, the problem is that you're writting a code that sort of interprets that print statement. And there, you want the line feed to be "humanly readable" in the generated code, hence, that code is outputting
\\n
, so that the final compiled code actually contains\n
.Not sure this is clear... Probably not... Cannot do better, sorry. To summarize, it's about the difference between what you actually type, and what's printed from that.
Hey, guys. I have a problem with one fixed test on python, specifically this one:
I'm getting error messages like this:
It is not clear for what reason \n is additionally shielded due to which the test fails. Can someone look at this test, maybe it is the problem? All other random and fixed tests I pass without problems, the problem is only in one single test.
p.s. My brainfuck interpreter written for testing returns the expected string.
In the domain of esoteric languages, code golfing, and recreational/entertainment programming, Brainfuck is a proper name and a common word.
Hmm... The Word BrainF**k Sounds Very Inappropriate
me: try to make it readable, decompose functions, write readable code, sweat over task, feel difficulties
random man from codewars:
closing
200
How many random test are there?
This confuses me even more lol
Loading more items...