Generate a lambda function in Python to find the average of all the elements in a list.
[1, 2, 3, 4, 5]
list_nums = [1, 2, 3, 4, 5]

average = lambda list_nums: sum(list_nums) / len(list_nums)

print(average(list_nums))