MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / compute

Function compute

projects/ProjectEuler/Problem 1/p1.py:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2
3
4def compute():
5 ans = sum(x for x in range(1000) if (x % 3 == 0 or x % 5 == 0))
6 return str(ans)
7
8
9if __name__ == "__main__":

Callers 1

p1.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected