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

Wednesday 17:00 Python Practice – 22.06.08.

14 Jun Wednesday 17:00 Python Practice – 22.06.08.

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.