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.
Że co?
I have no idea what I need to fix, sorry!
Неправильно написано описание ката или же получился непривильный перевод
7 kyu this kata
1 kyu
Please read this: https://docs.codewars.com/training/training-example
The description states:
Input program is alreeady a list of commands. You don;t need to
split
.Your solution does not handle input correctly, it's not a kata issue.
Traceback (most recent call last):
File "/workspace/default/.venv/lib/python3.11/site-packages/codewars_test/test_framework.py", line 112, in wrapper
func()
File "/workspace/default/tests.py", line 15, in __
test.assert_equals(simple_assembler(code.splitlines()), {'a': 1})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/default/solution.py", line 28, in simple_assembler
program = program.split('\n')
^^^^^^^^^^^^^
AttributeError: 'list' object has no attribute 'split'
i used multiline string in my IDE. (Pycharm)
print (simple assembler ('''
move 5
incl.
december a
december a
jnz a-1
on '''))
i wrote the code and it worked
but not on codewars.
Here they break the .split () line or another data structure, I don’t understand
why does my code not always run correctly
that's much more difficult than i thought
bro or persons who's to do this kata
you teach me to think right
from the beginning, i wrote code that should not display the elements of the returned array in the order in which they first appeared as duplicates.
now i thought a little and did everything right
yes, this work
Please read the info in the link I posted and you'll see what's wrong with your code. Last bullet point there. And mark your post as having spoiler content next time when posting code like that.
This comment is hidden because it contains spoiler information about the solution
it's too hard lol
Read this: https://docs.codewars.com/training/troubleshooting#expected-the-same
no one likes this
None should equal 'no one likes this'
wtf
Loading more items...