This is my python code:
def calc_average(arg1, arg2, arg3, arg4, arg5):
average = (arg1 + arg2 + arg3 + arg4 + arg5) / 5
return print("The average of your scores is ", average)
for number in range(1, 6):
scores = float(input("Enter test score " + str(number) + " of 5: "))
calc_average(scores) #This does not work. It counts as 1 argument instead of 5.
The function calc_average takes in 5 arguments and divides them by 5, creating an average. The 'for number in range(1,6):' asks the user to input a test score 5 times. I want to be able to put those 5 user inputs into the function calc_average. How can I do this? I have only done python for a few weeks and I am not really good at it. This is actually my first time using a function.