Question: To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such

To obtain marks for the below exercises, do not use any Python built-in functions that are not in the lecture slides or class notes (such as index or count). Instead, write your own control structures. The only built-in functions you are allowed to use are ones we learned in class such as append, len, range, print, and input. Each exercise below is worth 1 mark. 1) Write a program that prompts the user for an integer number. Your program should output the number of occurrences of this integer in the below list that your program will initialize. Note, the list has several occurrences of some integers. Include the following statement at the start of your program: numbers = [1, 5, 3, 7, 5, 8, 3, 9, 3] Sample runs: Enter an integer: 3 The number 3 occurs 3 times in the list Enter an integer: 5 The number 5 occurs 2 times in the list Enter an integer: 2 The number 2 occurs 0 times in the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
