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.
Because if your code is returning the wrong result, your code's returning the wrong result. Almost no languages changes behaviour very significantly for the same language version just because the runner environments is configured differently (there are some edge cases, but it's usually very hard to stumble on them accidentally), and especially, not Python. Blaming everyone else for your mistake is very likely to be wrong, and you'll end up making yourself look bad after ;-)
findSum() was used in instructions but find() was used to define function. Fixing the descriotion would help.
It would be easier for all if you post your code using proper markdown and marking your post as having spoiler content.
Not arguing. I am wondering why it's an issue that's all. There were also some issues with the CodeWars Servers.
Reading the instructions is the first thing you should do before writing any code.
This is never an argument. Cases like yours always end up being a mistake on user's side.
Code works in Terminal or notebook and I only get the error in CodeWars
Code works in Terminal or notebook and I only get the error in CodeWars
EOF error means that you're most probably missing a parenthesis somewhere.
I keep getting this error "EOFError: EOF when reading a line" in the window BUT when I run code in terminal or notebooks it works fine.
Testing "super" gives [2, 4] as the expected result along with the other sample tests. The vowels "aeiouy" were considered and instructions were read.
indirect type conversion
Ok solved it. Thanks all.
The array wasn't modified so not sure. I'll try another method to see if it works. Definitely did not sort the array.
I think it is what Chrono said.
I tried using the .remove method first and it passed the tests and failed the random. Then I changed to another method and managed to pass in everything.
Same here.
I even tried the code, with different values, on Repl.it and it gave me the right answer each time. Maybe a bug or something like it?
Loading more items...