#Write a program to get the sum and multiply of all the items in a given list.

list1= [1,4,7,2]

sum_total = 0
mul = 1

for num in list1:
    sum_total +=num
    mul *=num

print("Sum Total of all elements: ", sum_total)
print("Product of all the elements in the list", mul)

print("Largest number in the list: ", max(list1))
print("Smallest number in the list: ", min(list1))
5ad636481a085eac73c53d1e4552488c5d8ee518
<mask token>

<mask token>
for num in list1:
    sum_total += num
    mul *= num
print('Sum Total of all elements: ', sum_total)
print('Product of all the elements in the list', mul)
print('Largest number in the list: ', max(list1))
print('Smallest number in the list: ', min(list1))

list1 = [1, 4, 7, 2]
sum_total = 0
mul = 1
for num in list1:
    sum_total += num
    mul *= num
print('Sum Total of all elements: ', sum_total)
print('Product of all the elements in the list', mul)
print('Largest number in the list: ', max(list1))
print('Smallest number in the list: ', min(list1))

#Write a program to get the sum and multiply of all the items in a given list.

list1= [1,4,7,2]

sum_total = 0
mul = 1

for num in list1:
    sum_total +=num
    mul *=num

print("Sum Total of all elements: ", sum_total)
print("Product of all the elements in the list", mul)

print("Largest number in the list: ", max(list1))
print("Smallest number in the list: ", min(list1))