Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from itertools import accumulate
- N = int(input())
- def get_sum(N):
- return accumulate(range(1, N + 1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement