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
Loading collection data...
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