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.
hahaha i didnt even know there was a built in min max function lol
the job is to make a user defined function, not the built-in function encapsulated as user defined functio----logic < buddy
I'm soooooo happy that I managed to do it this way too .
hahahaha
Nice kata 👍 I like how it gently pushes you toward thinking in terms of state rather than just a final result. Accumulating the sum step by step feels very natural here, and it’s a good reminder that simple ideas can still teach clean problem‑solving habits. Thanks for putting this together.
This kata isn’t really difficult, but it requires quite a number of different concepts, maybe a bit too many for a 7 kyu. I think it would fit better as a simple 6 kyu.
The description is a bit unclear on whether the returned string should include the final period. Clarifying this would help avoid confusion.
This problem still persists.
Finally, a kata that I managed to solve like everyone else! Now I feel Human.
W3schools has a good python reference, including a list of string methods.
lol vim is great
Yo brother this didnt worked for me i tried it only passed 3 tests and 1 was not passed and how it worked to you
welp there goes my for loop using range :')
Actually this solution is the best (in python). The complexity is only O(N) and doesn't require additional memory.
use of eval is unsafe in real projects:
eval takes a string and executes it as real Python code.That means if someone passes malicious input, it will run directly on your system.
If someone called:
basic_op("import('os').system('rm -rf /')", 0, 0)
That would try to delete all your files (because eval would literally execute the string as Python code).
It can run any code, not just math — so it’s a big security risk if inputs come from outside (like users of a web app).
I don't think it should return "they did well" in the case of there being 0 scores. Spec doesn't define what should happen there, and a lot of solutions would probably DIV0. Maybe the spec should say "r will always have at least one score in it"
Loading more items...