Test average

Report a typo

Imagine that you are a teacher whose students recently wrote a test. However, you do not know exactly how many students were in the class at the time of writing. Based on the marks you have, you should calculate the average mark for this test.

Define the average_mark() function that returns the average value. The function should take a varying number of integers as positional arguments.

Round the result to one decimal place.

You are not supposed to call the function, just implement it.

Tip: Use round(average, 1) to get the value you need.

Sample Input 1:

3 4 5 3

Sample Output 1:

3.8
Write a program in Python 3
def average_mark():
pass
___

Create a free account to access the full topic