Pyupgrade to Python 3.9 (#4718)
* Pyupgrade to Python 3.9
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@@ -26,7 +26,7 @@ def solution(n: int = 1000) -> int:
|
||||
0
|
||||
"""
|
||||
|
||||
return sum([e for e in range(3, n) if e % 3 == 0 or e % 5 == 0])
|
||||
return sum(e for e in range(3, n) if e % 3 == 0 or e % 5 == 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user