I am new to python and trying to make function that will calculate the average value of inputs,how can I modify my function so it will return float to the nearest quarter 0.25 i.e the output can only be x.0
x.25
x.50
x.75
, I wrote the following function but I am not sure how to go next
def calculate_average(*args):
total = sum(args)
avg = total/len(args)
return avg
example of output
#calculate_average(30,35,15) -> 26.25
#calculate_average(20,28,14) -> 20.75
#calculate_average(1,2,3) -> 2.0