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.
Hi,
Basic test case
isn't doing what's it's announcing at all => the message should be something along the line ofCheck using a generator based coroutine
.Cheers
You don't explain restrictions in the description, and missing tag:
restricted
Added
As I know, there are two types of coroutines on Python:
You said about second one.
But, for example, there is PEP-342 about first one:
https://peps.python.org/pep-0342/
Sure, you can use it with OOP. But the main idea is solving it with coroutine. (I guess, I will limit it).
Coroutine in Python means a completely different thing than what is wanted from the kata:
https://docs.python.org/3/library/asyncio-task.html
Note that the word "couroutine" used by GeeksforGeeks is a term misuse: it's just a fancier generator.
Also, as some solutions shows, you don't even need a generator. Just an object will work.