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.
every solution is valid. If you passed Testing phase that mean you've something in the brain !
ChatGPT would easily understand that sentence and write code for you
return classmates times pages if classmates bigger 0 and pages bigger 0 else 0
imagine you could write the code like this :D
It's a simple and compact solution, but is really slow, definitely not good for really big lists
But it's so simple to read lol
))
@uniapi Thank you!
You're welcome!
@joshsj89
*if r is less than or equal to 3
I felt the same way when I saw this solution ^_^
If you think that the compiler will do it for you
So somebody should do it for the compiler
Because the compiler does not impelent itself...
)))
Don't worry prod (short for product) was added in version 3.8 of python, so it might not be included in older tutorials
This comment is hidden because it contains spoiler information about the solution
Yeah, it has been a while since I made this, looking back at it right now and I'm not very happy with the way the code turned out. The code is interesting, show some cool tricks, but it is not a good answer.
It was worth remembering about bitwise operators after I saw the others' solutions, because initially I forgot about them.
Loading more items...