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.
7 kyu this kata
1 kyu
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
it's too hard lol
no one likes this
None should equal 'no one likes this'
wtf
i cry even harder
i'm crying:(
i'm crying:(