0
Sum python
n = int(input(„number“)) for i in range(1, n): If i%3 == 0 or i%5 == 0: Print(i) How do i take the sum over the output print(i)?
4 Respuestas
+ 1
Maybe you need this if I guess it right. Hope it helps you.
https://code.sololearn.com/cVGt74J9ctxb/?ref=app
0
print(sum(i for i in range(1,int(input())) if i%3==0 or i%5==0))
0
TheWhiteCat💡 thank you very much!!
0
vicky you are welcome 😉