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.
Because python has
truthy
andfalsy
values, falsy values would be0
,''
,[]
,{}
this article can help you understand it better https://www.freecodecamp.org/news/truthy-and-falsy-values-in-python/because
if <expression>
clauses just need to evaluate<expression>
. The computed value is then either true or truthy or not.You can also just write
if True:...
orif False:...
. You don't have to compare your expression toTrue
orFalse
, that is whatif
already does.Why is not: if bool == true: ? to return yes or not