Created
April 14, 2019 10:32
-
-
Save isezen/baa46c221023245f35174f8f49727989 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _split_n(x, n): | |
y = [x // n for i in range(n)] | |
for i in range(x % n): | |
y[i] += 1 | |
return y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment