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.
This comment is hidden because it contains spoiler information about the solution
Bumping, because 3 years later it still hasn't been updated xD
as feedback: I think it would make sense to anchor this task to some real-world example (rather than it just being a glorified equation)..
I have no idea what was going on half the time
fair point. i've changed this for the future
It's important to guide them, but also allow some room for problem-solving and critical thinking, which are key aspects of coding.
Agreed.
cheers!
I agree it could be very easy.. but i set the target for 8'th kyo so it's aimed at someone writing their first code anyway
I have now changed the task and tests to return tuples :)
What is the purpose of this kata if everything, including calculations, is already provided in the description?
Error messages should use the correct names of parameters (snake_case).
P.S. f-strings can automatically insert variable names, e.g.:
Fair point. I might see if i can change that later.
The pythonic way to return a couple of values is using a tuple, not a list.
Added changes:
import random")
I hope that solves most of the issues. Let me know if there is anything else for me to republish the kata :)
-m
Haha, probably not! It was just for testing purposes. I can reset the range to natural numbers ^^
thanks for the feedback
Additionally, representing people and cups as negative numbers, and arguably as non-integers, does not make much sense. Are non-natural numbers really a valid domain for this problem?
Loading more items...