6.00
Question 3 (2 marks)
The given file Q3.py already contains statements to input data for the list of integers. You should write statements to get the element that has the least number of occurrences in the list. If more than one element is found then get the last element
Notes:
- You can create new functions if you see it is necessary.
- Do not edit given statements in the main function.
Sample input and output:
-Input: n = 7
List: 2 3 2 3 3 4 9
After processing: result = 9
Output for marking:
OUTPUT:
9
-Input: n = 9
List: 2 3 2 3 5 2 3 2 5
After processing: result = 5