Skip to main content
edited body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Python 2, 65 bytes

f=lambda l,n:ln and[sum(l[:len(l)/n+1])]+f(l[len(l)/n+1:],n-1)or[] 

Try it online!Try it online!

Python 2, 65 bytes

f=lambda l,n:l and[sum(l[:len(l)/n+1])]+f(l[len(l)/n+1:],n-1)or[] 

Try it online!

Python 2, 65 bytes

f=lambda l,n:n and[sum(l[:len(l)/n+1])]+f(l[len(l)/n+1:],n-1)or[] 

Try it online!

Post Undeleted by totallyhuman
added 35 characters in body
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Python 2, 4565 bytes

f=lambda l,n:l and[sum(l[:n]len(l)/n+1])]+f(l[nl[len(l)/n+1:],n-1)or[] 

Try it online!Try it online!

Python 2, 45 bytes

f=lambda l,n:l and[sum(l[:n])]+f(l[n:],n)or[] 

Try it online!

Python 2, 65 bytes

f=lambda l,n:l and[sum(l[:len(l)/n+1])]+f(l[len(l)/n+1:],n-1)or[] 

Try it online!

Post Deleted by totallyhuman
Source Link
totallyhuman
  • 17.4k
  • 3
  • 34
  • 89

Python 2, 45 bytes

f=lambda l,n:l and[sum(l[:n])]+f(l[n:],n)or[] 

Try it online!