Answers for "compute the multiple of sum program in python"

1

how to return the sum of two numbers python

def add(a, b):
  return a + b
Posted by: Guest on December-28-2020
0

sum of multiples of 3 or 5 python

total = []

for num in range(0,1001):
    if (num % 3 == 0) or (num % 5 == 0):
        total.append(num)
        
print(sum(total))
Posted by: Guest on August-02-2021

Code answers related to "compute the multiple of sum program in python"

Python Answers by Framework

Browse Popular Code Answers by Language