Assume you have a list of numbers VAR. Write code to add up the numbers in the list that are bigger than 7
Use: variables, loops, if[3]
|
|
|
Test Using: VAR = [] VAR = [5,6,7,8,9,10,11,12,13,14,15] VAR = [44,26,17] |
Assume you have a non-empty list of scores Y for your math class. Calculate the range of the scores.
Use: variables, loops[3]
|
|
|
Test Using: Y = [10] Y = [1,2,3,4,5] Y = [83,7,95] |