Today I completed the “Counting sheep” kata on Codewars! I began by creating a variable and a for loop to count “sheep” in an array(Trues). However, I also had to account for None values and code the loop to ignore them. Here is the final program!

 

Bug Zero Icon

OUR NEWSLETTER