CSI104_-_SP23_-_FE_2_86.webp
G

CSI104_-_SP23_-_FE_2_86.webp


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

Thông tin

Category
CSI104
Thêm bởi
Gajeel_2003
Ngày thêm
Lượt xem
905
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom