This should work. The count variable is used to check if the program is on the first item. If so, it sets total_weight equal to that item. Then count is increased by one so the program now multiplies the rest. After, it is multiplied by seven for the end result.
amount_of_plastic = [5, 2, 2, 20] total_weight = 0 count = 0 for item in amount_of_plastic: if count != 0: total_weight *= item else: total_weight = item count = 1 total_weight *= 7