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.
Default Python code comes with an error: two methods of the Compiler class are named "pass1"
See for yourselves:
VoilĂ , just a small detail to fix.
Generators are fun :)
It's a highly readable code.
Also, it's efficient since it passes the tests in a reasonable time.
Efficiency is always relative. Let's say you have a cog in your system that has a big complexity, but this cog only takes .1% of your runtime, then don't optimize this cog yet and focus on the ones taking way more. Again, Efficiency is always relative.
You can directly return "class_score < your_points", as this evaluates as a boolean already.
If it's true, you return true. If it's false, you return false. Thus, return it directly:
return class_score < your_points
Agreed, it's solved. Thanks.
NameError: name 'randint' is not defined
When running the random test cases...
The random.randint import seems missing from the testing file.