TORONTO KIDS COMPUTER CLUB | Thursday 17:00 Python Practice – 23.03.09.
21834
post-template-default,single,single-post,postid-21834,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Thursday 17:00 Python Practice – 23.03.09.

10 Mar Thursday 17:00 Python Practice – 23.03.09.

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]

No Comments

Sorry, the comment form is closed at this time.