user
Given the following code, identify the bug and provide the fix

Additional Context:
def get_highest_score(scores):
    return max(scores)

scores = [5, 7, 8, 10]
highest_score = get_highest_score()

Answer:
assistant
The bug is that get_highest_score() is not being passed any input, so the function cannot calculate the maximum value. The fix is to pass the scores list to the function:

scores = [5, 7, 8, 10]
highest_score = get_highest_score(scores)