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.
The binary values of
True
andFalse
can be referred to as1
and0
respectively. Basically, the solution is taking the element of the list,['No', 'Yes']
, in that respective index,[b]
, hence, the use of another pair of square brackets.Here is a link
I am new to coding and have been stuck on this code you wrote as i am unable to understand the use of [] in it and why do we have to write No befor Yes.