#
Question Text#
Create a function named {{ params_vars_name }} that has three parameters named lst, item, and n.
The function should return True if item appears in the list n times.
The function should return False otherwise.
For example, the following code:
lst = [5, 10 , 15, 15, 15, 20, 25, 30]
{{ params_vars_name }}(lst, item=15, n=2)
should return } because 15 in lst n times.
You do not need to worry about checking that inputs are valid, but the parameter names must be exact.
Hint: You may use lst.count(item) in an if statement.
Answer Section#
pl-submission-panel#
Attribution#
Problem is licensed under the CC-BY-NC-SA 4.0 license.
