16 Nov Saturday 13:00 Python Practice – 22.11.12.
Question:
Given the list of student marks:
marks = [62, 84, 74, 51, 98, 73, 77, 90, 85, 79, 65, 58, 74, 86]
Write a function that takes in a list of arguments and then returns a list containing marks which are above average.
Name the function whatever you like and please don’t forget to call the function to check the output.
Explanation:
For e.g. in the list given in the question, the average of all the marks is 75.428…, so the output of the function should create a list of marks which are above 75.428 . So the output should look something like [84, 98, 77, 90, 85, 79, 86]
Sorry, the comment form is closed at this time.