Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please use any four of the following to answer these text fields: - return average (marks) - average (student_marks) - return average (student_marks) - marks

please use any four of the following to answer these text fields:

- return average (marks) - average (student_marks) - return average (student_marks) - marks - len (marks) - range(len(marks)) - range(len(student_marks)) - average (marks) - average(range(len(student_marks))) - return avg - average(range(len(marks)))

image text in transcribed

Assume some student marks are stored in a Python list of integers called student_marks. The exact contents of student_marks is unknown but we assume that the list is non-empty. Complete the code below so that the function calculates and prints the average of all the student marks contained in student marks, by completing and callng a function to find the average of a list of integers # Calculate the ave rage of a 1iet of integers # Param : marks, a list of integers # Returns: an integer value def average (marks) avgu # find the average of the mark, in student marks print("The average mark is

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Management Systems

Authors: Mark L. Gillenson

3rd Edition

978-1119907466

More Books

Students also viewed these Databases questions