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 you use if nums
python check if the list at least have one element and return true
if list is empty python return false so automatically the if block is not excuted
same solution
Very concise and efficient
smart
oh right thank you
In python, empty lists and strings are falsy.
ok thanks for the explanantion
This comment is hidden because it contains spoiler information about the solution