TORONTO KIDS COMPUTER CLUB | PMCA Sunday 14:00 Python Homework 21.01.31.
19029
post-template-default,single,single-post,postid-19029,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

PMCA Sunday 14:00 Python Homework 21.01.31.

03 Feb PMCA Sunday 14:00 Python Homework 21.01.31.

Question:
Given the list of student marks:

notes = [12, 04, 14, 11, 18, 13, 07, 10, 05, 09, 15, 08, 14, 16]

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 11.142, so the output of the function should create a list of marks which are above 11.142 . So the output should look something like [12,14,18,13,15,14,16]

No Comments

Sorry, the comment form is closed at this time.