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.
findSum() was used in instructions but find() was used to define function. Fixing the descriotion would help.
Not arguing. I am wondering why it's an issue that's all. There were also some issues with the CodeWars Servers.
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
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.
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.
Code passed basic tests but failed random tests. Anyone got any ideas?
Ok got it.
Thank you that solutiuon worked. I see a lot of what I did in some textbooks where print was before the return so will break that habit.
This comment is hidden because it contains spoiler information about the solution
tried multiple variations and still got an error.
Double checked all suggestions in terminal. Code is fine the way it was written. This is a new error in the test code section. Is this a bug?
STDERR
Traceback (most recent call last):
File "main.py", line 4, in
Test.assert_equals(create_phone_number([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]), "(123) 456-7890")
TypeError: create_phone_number() takes 0 positional arguments but 1 was given
Anybody getting this error when running code? I am testing my code in terminal and it works fine and gives the correct output.
Traceback (most recent call last):
File "main.py", line 1, in
from solution import *
File "/home/codewarrior/solution.py", line 1, in
num_list = input("Please enter your list ")
EOFError: EOF when reading a line