I started learning Python with YT tutorials and codewars, and this kind of problem would have stomped and disheartened me at the beginning.
To me 8 kyu is literally just citing a concept or function (e.g., this one: https://www.codewars.com/kata/555a67db74814aa4ee0001b5/python),
while 7 kyu is applying a concept or function, and 6 kyu combining more than one concept or function, and so on.
Especially 8 kyu shouldn't be too hard because if the entry level is steep a lot of the true beginners will turn away.
Well, my opinion, at least :D
I think it's clever so I vote clever :D
Since I don't really have a proper reference for what 'best practice' would look like.
Clever means for me that it is an approach I couldn't even conceive of,
or that combines aspects of programming in a way that is new to me.
Create a new dictionary with the merged keys and values of d and other, which must both be dictionaries. The values of other take priority when d and other share keys.
New in version 3.9.
I think it's clever because I was really trying to figure out a way to solve it without relying on lambda
but couldn't quite figure it out because if two items have the same key, their original order will be preserved. However, by reversing the words, I inadvertently changed the order for words with the same last character. Surely this example here is not best practice but a unique approach I appreciate.
Complexity here I think is:
O(n×m), where n is the length of the alphabet and m is the number of words in listx
Thanks for your answer,
I just feel that if someone just sets out to learn to program,
and gets a kata like this where you need to nest join functions,
while converting data types, it might be a quite disheartening experience.
Is it even possible to change the difficulty of a kata,
or are these kind of comments rather pointless?
I started learning Python with YT tutorials and codewars, and this kind of problem would have stomped and disheartened me at the beginning.
To me 8 kyu is literally just citing a concept or function (e.g., this one: https://www.codewars.com/kata/555a67db74814aa4ee0001b5/python),
while 7 kyu is applying a concept or function, and 6 kyu combining more than one concept or function, and so on.
Especially 8 kyu shouldn't be too hard because if the entry level is steep a lot of the true beginners will turn away.
Well, my opinion, at least :D
This comment is hidden because it contains spoiler information about the solution
I thought about this, but then I decided to learn :D
I think it's clever so I vote clever :D
Since I don't really have a proper reference for what 'best practice' would look like.
Clever means for me that it is an approach I couldn't even conceive of,
or that combines aspects of programming in a way that is new to me.
Some importable libraries are so useful but almost feel like cheating in codewars.
Knowledge is power :)
d | other
(cf. https://docs.python.org/3/library/stdtypes.html#mapping-types-dict)
This comment is hidden because it contains spoiler information about the solution
Readability >9000 :D
"7 kyu"
I think it's clever because I was really trying to figure out a way to solve it without relying on lambda
but couldn't quite figure it out because if two items have the same key, their original order will be preserved. However, by reversing the words, I inadvertently changed the order for words with the same last character. Surely this example here is not best practice but a unique approach I appreciate.
Complexity here I think is:
O(n×m), where n is the length of the alphabet and m is the number of words in listx
There are some disturbing tasks to be found in muddy waters of 8 kyu.
Timeouts make me sad.
.name btw
shake my head
Thanks for your answer,
I just feel that if someone just sets out to learn to program,
and gets a kata like this where you need to nest join functions,
while converting data types, it might be a quite disheartening experience.
Is it even possible to change the difficulty of a kata,
or are these kind of comments rather pointless?
This is the least 8 kyu for Python I've ever done :D
Loading more items...