Develop a function in Python that takes a list of integers, computes the cumulative sum, and prints the result.
[1, 2, 3, 4, 5]
def cumulative_sum(lst):
    sum = 0
    for i in lst:
        sum += i
        print(sum)

cumulative_sum([1, 2, 3, 4, 5])