Mathematics
Algorithms
Logic
Numbers
Data Types
What is this program intended for?
mylist = range(1000) def multiple(arg): return int.__mul__(*(x for x in arg if (x == 3 or x == 5))) print(multiple(mylist))
- mylist = range(1000)
- def multiple(arg):
return sum(x for x in mylist if (x % 3 == 0 or x % 5 == 0))- return int.__mul__(*(x for x in arg if (x == 3 or x == 5)))
- print(multiple(mylist))