In this new program, use the Dogs.csv data set. Traverse the maximum lifespan column and find the sum of all the values in the column. Then, output the sum in the following format.
The sum of column 5 is 1417
Coding:
Hotkey Shortcuts
Move BlocksUP or DOWN or TAB
Run Program ALT + SHIFT + R
Stop Program ALT + SHIFT + S
Hide Tray ALT + SHIFT + X
Zoom In ALT + +
Zoom Out ALT + -
Open Help ALT + SHIFT + H
Navigate to Tray ALT + 1
Navigate to Blocks ALT + 2
Enter Navigation Mode SHIFT + ENTER
Blocks
Hint
Great job!
Try again
Add a count variable and a sum variable that begins at 0. Then add the loop to traverse the column. In this loop, get the current value in the column and add it to the sum. Then add one to your counter variable. Once the loop is finished, the code will need to output the sum using the given format. To complete this program, drag in the starter block and edit it.