Question 10 of 28


Prev Question Next Question

Question

def my function (listofNumbers, b):

totall = b
total2 = 0

for num in listOfNumbers:
if num < 5:
totall +=
else:
total2 +=

return totall

listofNums = [4, 3, 9, 1, 7, 2,
a = my_function(listofNums, 3)
print (a)

9, 0,

6,

8, 5]

Refer to the exhibit.

Which value of "a" is displayed when the Python code is executed?

Answers