Next, we can group these variables together to make a list. Making a list makes it easier for us to do our calculations. Here, the list is called as the “list with activity data”. We have already completed the two first variables in the list. See if you can complete the rest of the list!
If the Trinket is not viewing properly, please click here
Now you need to compute the sum of the activity data of Hallie. As you have already created a list, it is now very easy to compute the sum of the list with Trinket! You just need to use a function on that list. In coding, a function is an action, or type of calculation, that we want to complete. There are a lot of different functions in Trinket. Have a look to the video below!
Good job! In the Trinket below, use the correct function now.
If the Trinket is not viewing properly, please click here
Click the blue arrow at the bottom right-hand corner to continue to the next page!