Assume you have a list variable LIST. Count the number of items in LIST.
Use: loops, variables[2]
|
|
|
Test Using: LIST = ['a','b','c'] LIST = [1,2,3,4,5,6] LIST = [] |
Assume you have a list of numbers Y. Write code to add up the numbers in the list that are bigger than or equal to than 7
Use: variables, loops, if[3]
|
|
|
Test Using: Y = [] Y = [5,6,7,8,9,10,11,12,13,14,15] Y = [73,52,80] |