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.
when using list comprehensions, if you have no else to add, you should use the if after the for not before it. I guess that's the reason
try it yourself.
done
not really. I think solving simple problems with method won't improve your problem solving skills.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I tried this one but it kept asking me to add an else statement
Personally I used CodeCademy to learn the basics and rely on W3Schools to get a reminder of the correct syntax to use when I am not sure. Do not hesitate to Google what you are trying to achieve if you suspect that something already exists to do so in Python's built-in methods. I cannot speak for everyone there but this is what worked best for me so maybe it will suit your learning style as well !
Easiest way for sure