#! /usr/bin/python3
""" Write a program to find the sum of all the elements stored in the array """


def sum_of_all_elements(array):
    """ Function to find sum of array """
    return sum(array)


if __name__ == '__main__':
    print(sum_of_all_elements([1, 2, 3, 4, 5]))
