Advertisement
andewK

Untitled

Jul 12th, 2023
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. from itertools import accumulate
  2. N = int(input())
  3. def get_sum(N):
  4. return accumulate(range(1, N + 1))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement