The Grinch has snuck into a few homes in the area and he has been filling his sacks full of candy canes and toffee apples. The children are upset but the elves have intercepted the Grinch and have found 4 sacks full of Candy Canes and Apples.
Your task is to sort through them and find out how many Candy Canes (J) there are and how many apples there are (@).
To do this, you will need to go through a for loop for each of the sacks and work out the total J's and total @'s. The code below shows you how to go through one of the lists to find it. You will need to work out the maths involved to add them up if it's "J" or if its "@". Note the importance of the speech marks around the text this time. You will need your own variables to count the total of the Candy Canes.
You can see the output for the example file shows that sack one has 'found candy cane' 6 times.....