Correct, the sum was 116!

Now we can figure out what the cow is doing using the sum along with a decision tree.

Have a look at the decision-tree below.

If the Trinket is not viewing properly, please click here

Trinket is a block-based language but the code that runs behind the block is in Python language. 

Let’s see what the code you have created in Trinket looks like in Python by clicking on the “>_View Code” button in the Trinket below!

If the Trinket is not viewing properly, please click here

We have created the Trinket code to find out what the cow is doing this afternoon. 

Would you be able to translate the Trinket code below into Python?

If the Trinket is not viewing properly, please click here