lst = [-2, 0, 30, 25, 6]
multi = 1
for num in lst:
if num % 5 == 0 and num !=0:
multi *= num
print(multi)
sum = 0
if num < 0 and num >= -10:
sum += num
print(sum)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
lst = [-2, 0, 30, 25, 6]
multi = 1
for num in lst:
if num % 5 == 0 and num !=0:
multi *= num
print(multi)
lst = [-2, 0, 30, 25, 6]
sum = 0
for num in lst:
if num < 0 and num >= -10:
sum += num
print(sum)