Great work so far. Let’s finish up by practicing with a few functions that take lists as arguments.
Define a function called
count that has two arguments called
Return the number of times the item occurs in the list.
count([1, 2, 1, 1], 1) should return
1 appears 3 times in the list).
listas a variable name in your code—it’s a reserved word in Python!