Question: PYTHON LIST PROBLEM 1: Count the occurrence of an element in a list. Given a list in Python and a number x, count number

PYTHON LIST PROBLEM 1: Count the occurrence of an element in a list. Given a list in Python and a number x, count number of occurrences of x in the given list. (30 points) Given A: Input: Ist = [2, 50, 60, 2, 4, 52, 45, 85, 3, 50, 2, 70, 90, 20, 2, 50, 42, 50, 2, 5, 7, 8, 90, 63, 52, 50, 45, 2, 60, 50, 50, 2] x = 50 Given B: Input: Ist = [2, 50, 60, 2, 4, 52, 45, 85, 3, 50, 2, 70, 90, 20, 2, 50, 42, 50, 2, 5, 7, 8, 90, 63, 52, 50, 45, 2, 60, 50, 50, 2] x = 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
