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
In python, empty lists and strings are falsy.
This comment is hidden because it contains spoiler information about the solution
Read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution
The error message is
True should equal False
and it means your function returnedTrue
when the expected value wasFalse