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.
hey there. We use this "//" division cause it returns an integer which suits the situation.
If we wanted a float answer we'd use "/" but in this case we cannot prepare "1.5" cakes, get it ?
So it would round 1.5 to simply 1 cause that's the actual number of complete cakes that we can prepare.
Hope this helped.
I mean, why that division? that's the thing I don't understand of this solution. I am very noob to this, sorry.
Can you explain it?
floor division. ex. 800 / 400 will return 2.0, which is a float number
I have a question. Why //?
I didn't think that. My solution is 15 lines, with two loops and a list comprehension lol. Well, I still have to improve. I really liked this solution