Optimize the given code in Python to reduce its complexity
my_list = [1, 2, 3, 4, 5]
total = 0

for x in my_list:
    total = total + x
my_list = [1, 2, 3, 4, 5]
total = sum(my_list)

print("Sum of all elements in given list:", total)