给定一些电影评分，请编写一个函数来计算评分的平均值。输入应该是评分的列表。


ratings=[5, 4, 3, 2, 5, 3, 4]
```python
def average_rating(ratings):
    return sum(ratings)/len(ratings)

ratings=[5, 4, 3, 2, 5, 3, 4]
print(average_rating(ratings))
```