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.
Nope. Functions from operator module don't care what type of objects you give them, as long as they implement
__add__
. However, if you for example give floats to int-bound methods, then you get an error.yep new to slices should of used [2:], Still learning,adjusted solution
What for is len function? We can just use slice here.
This comment is hidden because it contains spoiler information about the solution
You're a bit faster than the shark (3m/s vs 2m/s), but you're also much further away from the pontoon than it is (31m away vs. 13m away), which means it will get to the pontoon first and you will be eaten if you try to get past it.
That's really smart
Point? Are you serious? What for?
absolutely, I thought a lot, but didn't understand what it used for
This comment is hidden because it contains spoiler information about the solution
Testing for 31 and 13 and 3 and 2 and False
It should work for random inputs too: 'Alive!' should equal 'Shark Bait!'
Why? Since you're faster than the shark, the answer should equal 'Alive!' anyway (btw doesn't matter if 'dolphin' is True or False).
Am I right or not? Mayne I just don't understand the task.
This comment is hidden because it contains spoiler information about the solution
Lua translation
If dad has 55 and son has 30, then never dad would still have 55 and son would be 5 years younger...
i'm asking myself the same question
I saw the box, but it was too late after posting - then I just couldn't edit the first comment to tick it. Thank you!
Loading more items...