Can you provide a Python program that prints the largest element in the given list?
[1, 3, 4, 5, 19, 13, 7]
def get_largest(nums):
    max_num = nums[0]
    for num in nums:
        if num > max_num:
            max_num = num
    return max_num

print(get_largest([1, 3, 4, 5, 19, 13, 7]))